Skip to content

Commit a50014b

Browse files
committed
fix: Change security group tags merge precedence in vpc-endpoints module
1 parent 0eefe64 commit a50014b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/complete/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ module "vpc_endpoints" {
102102
}
103103
}
104104

105+
security_group_tags = {
106+
Name = "example-name-override"
107+
}
108+
105109
endpoints = {
106110
s3 = {
107111
service = "s3"

modules/vpc-endpoints/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ resource "aws_security_group" "this" {
8383

8484
tags = merge(
8585
var.tags,
86-
var.security_group_tags,
8786
{ "Name" = try(coalesce(var.security_group_name, var.security_group_name_prefix), "") },
87+
var.security_group_tags
8888
)
8989

9090
lifecycle {

0 commit comments

Comments
 (0)