Skip to content

Commit

Permalink
Merge pull request #26 from voyagegroup/tags-depreacted
Browse files Browse the repository at this point in the history
asg tags are deprecated
  • Loading branch information
larufa authored Dec 8, 2023
2 parents 067a73a + 691697f commit f14a9f3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ resource "aws_autoscaling_group" "app" {
vpc_zone_identifier = var.vpc_zone_identifier
default_cooldown = var.asg_default_cooldown

tags = var.asg_extra_tags
dynamic "tag" {
for_each = toset(var.asg_extra_tags)
content {
key = tag.value.key
value = tag.value.value
propagate_at_launch = tag.value.propagate_at_launch
}
}

lifecycle {
create_before_destroy = true
Expand Down

0 comments on commit f14a9f3

Please sign in to comment.