Skip to content

Commit

Permalink
testing create_before_destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbass committed May 9, 2024
1 parent a8267e9 commit d62ac02
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tofu/modules/network/vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ resource "aws_security_group" "ecr_endpoint" {
tags = merge(var.tags, {
Name = "${var.name_prefix}-ecr-endpoint"
})
lifecycle {
create_before_destroy = true
}

}

resource "aws_security_group_rule" "ecr_endpoint_ingress" {
Expand All @@ -246,6 +250,10 @@ resource "aws_security_group" "secrets_endpoint" {
tags = merge(var.tags, {
Name = "${var.name_prefix}-secrets-endpoint"
})
lifecycle {
create_before_destroy = true
}

}

resource "aws_security_group_rule" "secrets_endpoint_ingress" {
Expand All @@ -265,6 +273,10 @@ resource "aws_security_group" "logs_endpoint" {
tags = merge(var.tags, {
Name = "${var.name_prefix}-logs-endpoint"
})
lifecycle {
create_before_destroy = true
}

}

resource "aws_security_group_rule" "logs_endpoint_ingress" {
Expand Down

0 comments on commit d62ac02

Please sign in to comment.