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" {
36
36
propagate_at_launch = true
37
37
value = var. environment
38
38
}
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
+ }
39
47
lifecycle {
40
48
create_before_destroy = true
41
49
}
Original file line number Diff line number Diff line change @@ -24,9 +24,15 @@ variable "asg" {
24
24
max_size = number
25
25
min_size = number
26
26
protect_from_scale_in = bool
27
+ additional_tags = list (object ({
28
+ key = string
29
+ value = string
30
+ propagate_at_launch = bool
31
+ }))
27
32
}))
28
33
description = " Autoscaling group configuration."
29
34
}
35
+
30
36
variable "launch_configs" {
31
37
type = list (object ({
32
38
name = string
You can’t perform that action at this time.
0 commit comments