@@ -8,7 +8,7 @@ data "aws_ssm_parameter" "ecs_optimized_ami" {
88# https://registry.terraform.io/modules/terraform-aws-modules/autoscaling/aws/latest
99module "autoscaling" {
1010 source = " terraform-aws-modules/autoscaling/aws"
11- version = " ~> 8.0" # v9+ has breaking API changes in mixed_instances_policy
11+ version = " ~> 8.0" # v9+ has breaking API changes in mixed_instances_policy
1212
1313 name = " ${ local . name } -spot"
1414 min_size = 2
@@ -77,8 +77,8 @@ module "autoscaling" {
7777 {
7878 delete_on_termination = true
7979 device_index = 0
80- associate_public_ip_address = true # set to False to use IPv6 only - still doesn't fully work with SSM and ECS as of Oct 2025
81- ipv6_address_count = 1 # Assign one IPv6 address
80+ associate_public_ip_address = true # set to False to use IPv6 only - still doesn't fully work with SSM and ECS as of Oct 2025
81+ ipv6_address_count = 1 # Assign one IPv6 address
8282 security_groups = [module.autoscaling_sg.security_group_id]
8383 }
8484 ]
@@ -129,7 +129,7 @@ module "autoscaling" {
129129# https://registry.terraform.io/modules/terraform-aws-modules/security-group/aws/latest
130130module "autoscaling_sg" {
131131 source = " terraform-aws-modules/security-group/aws"
132- version = " ~> 5.3" # Latest version
132+ version = " ~> 5.3" # Latest version
133133
134134 name = local. name
135135 description = " Autoscaling group security group"
@@ -153,7 +153,7 @@ module "autoscaling_sg" {
153153 }
154154 ]
155155
156- egress_rules = [" all-all" ] # Already includes IPv4 and IPv6 egress
156+ egress_rules = [" all-all" ] # Already includes IPv4 and IPv6 egress
157157
158158 tags = local. tags
159159}
0 commit comments