Skip to content

Commit 0004bf7

Browse files
authored
Merge pull request shalb#10 from shalb/prov-versions-update
fix tags and providers version update
2 parents 16aea1c + 1cba5b7 commit 0004bf7

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

infra.tf

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,14 @@ resource "aws_autoscaling_group" "master" {
6565
id = aws_launch_template.master[count.index].id
6666
version = "$Latest"
6767
}
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+
}
7076
depends_on = [
7177
aws_route53_record.alb_ingress,
7278
aws_lb.kubeapi
@@ -86,7 +92,14 @@ resource "aws_autoscaling_group" "worker" {
8692
version = "$Latest"
8793
}
8894

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+
}
90103

91104
depends_on = [
92105
aws_route53_record.alb_ingress,

init.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ terraform {
33
required_providers {
44
aws = {
55
source = "hashicorp/aws"
6-
version = "~> 3.0"
6+
version = "~> 5.0"
77
}
8-
null = "~> 2.1"
9-
random = "~> 2.2"
10-
template = "~> 2.1"
8+
null = "~> 3.2"
9+
random = "~> 3.4"
10+
template = "~> 2.2"
1111
}
1212
}
1313

0 commit comments

Comments
 (0)