Skip to content

Commit 8b44a41

Browse files
fix: security_group_tags for endpoints
Previously was impossible to set custom Name tag for vpce sg
1 parent 0eefe64 commit 8b44a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/vpc-endpoints/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ resource "aws_security_group" "this" {
8282
vpc_id = var.vpc_id
8383

8484
tags = merge(
85+
{ "Name" = try(coalesce(var.security_group_name, var.security_group_name_prefix), "") },
8586
var.tags,
8687
var.security_group_tags,
87-
{ "Name" = try(coalesce(var.security_group_name, var.security_group_name_prefix), "") },
8888
)
8989

9090
lifecycle {

0 commit comments

Comments
 (0)