Skip to content

Commit

Permalink
Remove Endpoint's CF output as security aspect
Browse files Browse the repository at this point in the history
  • Loading branch information
san99tiago committed Jul 10, 2024
1 parent c359117 commit 8b3afdc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cdk/stacks/cdk_chatbot_api_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ def create_rest_api(self):
proxy=False, # Proxy disabled to have more control
)

# Method to remove the "CloudFormation Output" to avoid exposing the endpoint
self.api.node.try_remove_child("Endpoint")

def configure_rest_api(self):
"""
Method to configure the REST-API Gateway with resources and methods.
Expand Down

0 comments on commit 8b3afdc

Please sign in to comment.