File tree Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,14 @@ resource "aws_autoscaling_group" "master" {
65
65
id = aws_launch_template. master [count . index ]. id
66
66
version = " $Latest"
67
67
}
68
- tags = local. master_tags
69
-
68
+ dynamic "tag" {
69
+ for_each = local. master_tags
70
+ content {
71
+ key = tag. value . key
72
+ propagate_at_launch = tag. value . propagate_at_launch
73
+ value = tag. value . value
74
+ }
75
+ }
70
76
depends_on = [
71
77
aws_route53_record . alb_ingress ,
72
78
aws_lb . kubeapi
@@ -86,7 +92,14 @@ resource "aws_autoscaling_group" "worker" {
86
92
version = " $Latest"
87
93
}
88
94
89
- tags = each. value . tags
95
+ dynamic "tag" {
96
+ for_each = local. master_tags
97
+ content {
98
+ key = tag. value . key
99
+ propagate_at_launch = tag. value . propagate_at_launch
100
+ value = tag. value . value
101
+ }
102
+ }
90
103
91
104
depends_on = [
92
105
aws_route53_record . alb_ingress ,
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ terraform {
3
3
required_providers {
4
4
aws = {
5
5
source = " hashicorp/aws"
6
- version = " ~> 3 .0"
6
+ version = " ~> 5 .0"
7
7
}
8
- null = " ~> 2.1 "
9
- random = " ~> 2.2 "
10
- template = " ~> 2.1 "
8
+ null = " ~> 3.2 "
9
+ random = " ~> 3.4 "
10
+ template = " ~> 2.2 "
11
11
}
12
12
}
13
13
You can’t perform that action at this time.
0 commit comments