Skip to content

Commit 52650a4

Browse files
committed
Create_before_destroy
1 parent e62b150 commit 52650a4

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

infrastructure/terraform/components/api/api_gateway_rest_api.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ resource "aws_api_gateway_rest_api" "main" {
55
disable_execute_api_endpoint = var.disable_gateway_execute_endpoint
66

77
lifecycle {
8-
replace_triggered_by = [terraform_data.rest_api_security_policy]
8+
replace_triggered_by = [terraform_data.rest_api_security_policy]
9+
create_before_destroy = true
910
}
1011
}

infrastructure/terraform/components/api/api_gateway_stage.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ resource "aws_api_gateway_stage" "main" {
44
rest_api_id = aws_api_gateway_rest_api.main.id
55
deployment_id = aws_api_gateway_deployment.main.id
66

7-
depends_on = [aws_api_gateway_base_path_mapping.main]
8-
97
access_log_settings {
108
destination_arn = aws_cloudwatch_log_group.api_gateway_access.arn
119

0 commit comments

Comments
 (0)