Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ resource "aws_security_group" "this" {
revoke_rules_on_delete = true
vpc_id = var.security_group_vpc_id

tags = var.tags
tags = merge(
var.tags,
local.security_group_name != "" ? { Name = local.security_group_name } : {},
)

lifecycle {
create_before_destroy = true
Expand Down
Loading