Skip to content

Commit 195e519

Browse files
set security group lifecycle (#119)
1 parent 3c8645e commit 195e519

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ resource "aws_security_group" "default" {
2222
name = module.this.id
2323
description = "Allow inbound traffic from Security Groups and CIDRs. Allow all outbound traffic"
2424
tags = module.this.tags
25+
26+
lifecycle {
27+
create_before_destroy = true
28+
}
2529
}
2630

2731
resource "aws_security_group_rule" "ingress_security_groups" {

0 commit comments

Comments
 (0)