Skip to content

Commit

Permalink
Use tag and deprecate tags (#95)
Browse files Browse the repository at this point in the history
* Use tag and deprecate tags

* Use tag.key and tag.value
  • Loading branch information
nitrocode committed Nov 5, 2022
1 parent 0ed34a5 commit dce2213
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,14 @@ resource "aws_autoscaling_group" "default" {
}
}

tags = flatten([
for key in keys(module.this.tags) :
{
key = key
value = module.this.tags[key]
dynamic "tag" {
for_each = module.this.tags
content {
key = tag.key
value = tag.value
propagate_at_launch = true
}
])
}

lifecycle {
create_before_destroy = true
Expand Down

0 comments on commit dce2213

Please sign in to comment.