Skip to content

Commit f266ace

Browse files
feat: Define default name for VPC endpoint
1 parent 9ffd9c6 commit f266ace

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/vpc-endpoints/main.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ resource "aws_vpc_endpoint" "this" {
4444
}
4545
}
4646

47-
tags = merge(var.tags, try(each.value.tags, {}))
47+
tags = merge(
48+
var.tags,
49+
{ "Name" = "${each.key}-vpc-endpoint" },
50+
try(each.value.tags, {}),
51+
)
4852

4953
timeouts {
5054
create = try(var.timeouts.create, "10m")

0 commit comments

Comments
 (0)