Skip to content

Commit 67c24e8

Browse files
committed
Updated IGW tags to be ignored for lifecycle changes
1 parent 31de3d0 commit 67c24e8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

main.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ resource "aws_internet_gateway" "this" {
8686

8787
vpc_id = local.vpc_id
8888

89-
tags = merge(
90-
{
91-
"Name" = format("%s", var.name)
92-
},
93-
var.tags,
94-
var.igw_tags,
95-
)
89+
lifecycle {
90+
ignore_changes = [
91+
# Ignore changes to tags, e.g. because a management agent
92+
# updates these based on some ruleset managed elsewhere.
93+
tags,
94+
]
95+
}
9696
}
9797

9898
################

0 commit comments

Comments
 (0)