diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 0ac5553e6..7e39c31ec 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -102,6 +102,10 @@ module "vpc_endpoints" { } } + security_group_tags = { + Name = "example-name-override" + } + endpoints = { s3 = { service = "s3" diff --git a/modules/vpc-endpoints/main.tf b/modules/vpc-endpoints/main.tf index 5e2d105b0..344e087c8 100644 --- a/modules/vpc-endpoints/main.tf +++ b/modules/vpc-endpoints/main.tf @@ -83,8 +83,8 @@ resource "aws_security_group" "this" { tags = merge( var.tags, - var.security_group_tags, { "Name" = try(coalesce(var.security_group_name, var.security_group_name_prefix), "") }, + var.security_group_tags ) lifecycle {