Skip to content

Commit 34969f9

Browse files
feat: Add Name tag to security group created (#44)
Co-authored-by: Bryant Biggs <[email protected]>
1 parent bc6dbc4 commit 34969f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ resource "aws_security_group" "this" {
177177
revoke_rules_on_delete = true
178178
vpc_id = var.security_group_vpc_id
179179

180-
tags = var.tags
180+
tags = merge(
181+
var.tags,
182+
{ Name = local.security_group_name },
183+
)
181184

182185
lifecycle {
183186
create_before_destroy = true

0 commit comments

Comments
 (0)