Skip to content

Commit

Permalink
disable execute api endpoints (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
uolter authored Apr 15, 2024
1 parent 6a07b3d commit 61ac6cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/33-api-user-registry.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ resource "aws_api_gateway_rest_api" "user_registry" {
types = ["REGIONAL"]
}

disable_execute_api_endpoint = var.apigw_custom_domain_create

tags = { Name = local.user_registry_api_name }
}

Expand Down
2 changes: 2 additions & 0 deletions src/main/34-api-docs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ resource "aws_s3_object" "openapi_user_registry" {
resource "aws_api_gateway_rest_api" "openapi_user_registry" {
name = format("%s-openapi", local.project)
description = "Openapi user registry documentation."

disable_execute_api_endpoint = var.apigw_custom_domain_create
}

resource "aws_api_gateway_resource" "folder" {
Expand Down

0 comments on commit 61ac6cd

Please sign in to comment.