File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,14 @@ resource "aws_autoscaling_group" "ecs_cluster_asg" {
3636 propagate_at_launch = true
3737 value = var. environment
3838 }
39+ dynamic "tag" {
40+ for_each = each. value . additional_tags
41+ content {
42+ key = tag. value . key
43+ value = tag. value . value
44+ propagate_at_launch = tag. value . propagate_at_launch
45+ }
46+ }
3947 lifecycle {
4048 create_before_destroy = true
4149 }
Original file line number Diff line number Diff line change @@ -24,9 +24,15 @@ variable "asg" {
2424 max_size = number
2525 min_size = number
2626 protect_from_scale_in = bool
27+ additional_tags = list (object ({
28+ key = string
29+ value = string
30+ propagate_at_launch = bool
31+ }))
2732 }))
2833 description = " Autoscaling group configuration."
2934}
35+
3036variable "launch_configs" {
3137 type = list (object ({
3238 name = string
You can’t perform that action at this time.
0 commit comments