Skip to content

Commit ba9a35d

Browse files
committed
Added another depends_on condition to avoid tear down race conditions
1 parent ae5614b commit ba9a35d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

infrastructure/api.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ resource "aws_api_gateway_base_path_mapping" "api_mapping" {
2323
stage_name = var.environment
2424
domain_name = local.api_gateway_full_domain_name
2525

26-
depends_on = [aws_api_gateway_deployment.ndr_api_deploy, aws_api_gateway_rest_api.ndr_doc_store_api]
26+
depends_on = [
27+
aws_api_gateway_deployment.ndr_api_deploy,
28+
aws_api_gateway_rest_api.ndr_doc_store_api,
29+
aws_api_gateway_stage.ndr_api
30+
]
2731
}
2832

2933
resource "aws_api_gateway_resource" "auth_resource" {

0 commit comments

Comments
 (0)