Commit 5f35ec28 authored by sojinss4u's avatar sojinss4u Committed by GitHub

feat: Allow custom Name tag for security group (#187)

parent 743e57b6
...@@ -21,10 +21,10 @@ resource "aws_security_group" "this" { ...@@ -21,10 +21,10 @@ resource "aws_security_group" "this" {
revoke_rules_on_delete = var.revoke_rules_on_delete revoke_rules_on_delete = var.revoke_rules_on_delete
tags = merge( tags = merge(
var.tags,
{ {
"Name" = format("%s", var.name) "Name" = format("%s", var.name)
}, },
var.tags,
) )
} }
...@@ -40,10 +40,10 @@ resource "aws_security_group" "this_name_prefix" { ...@@ -40,10 +40,10 @@ resource "aws_security_group" "this_name_prefix" {
revoke_rules_on_delete = var.revoke_rules_on_delete revoke_rules_on_delete = var.revoke_rules_on_delete
tags = merge( tags = merge(
var.tags,
{ {
"Name" = format("%s", var.name) "Name" = format("%s", var.name)
}, },
var.tags,
) )
lifecycle { lifecycle {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment