Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
Added vpc link as a dependency to API Gateway integration of health check API
  • Loading branch information
ramesh-maddegoda authored Jan 23, 2025
1 parent f5210d9 commit 07dea71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform-project-api-gateway_module/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ resource "aws_api_gateway_integration" "rest_api_integration_for_health_check" {
content_handling = "CONVERT_TO_TEXT"
connection_type = "VPC_LINK"
connection_id = aws_api_gateway_vpc_link.rest_api_health_check_vpc_link.id

depends_on = [aws_api_gateway_integration.rest_api_health_check_vpc_link]
}

resource "aws_api_gateway_method_response" "response_200" {
Expand Down

0 comments on commit 07dea71

Please sign in to comment.