diff --git a/main.tf b/main.tf index 731a855..b2dae4a 100644 --- a/main.tf +++ b/main.tf @@ -50,23 +50,21 @@ resource "aws_autoscaling_group" "app" { launch_configuration = aws_launch_configuration.app.name vpc_zone_identifier = var.asg_subnets - tags = [ - { - key = "Name" - value = "AS-${var.env}-${var.app}" - propagate_at_launch = true - }, - { - key = "App" - value = var.app - propagate_at_launch = true - }, - { - key = "CrowdStrikeEnv" - value = "production" - propagate_at_launch = true - }, - ] + tag { + key = "Name" + value = "AS-${var.env}-${var.app}" + propagate_at_launch = true + } + tag { + key = "App" + value = var.app + propagate_at_launch = true + } + tag { + key = "CrowdStrikeEnv" + value = "production" + propagate_at_launch = true + } lifecycle { create_before_destroy = true diff --git a/outputs.tf b/outputs.tf index 00634eb..f715d6e 100644 --- a/outputs.tf +++ b/outputs.tf @@ -25,4 +25,3 @@ output "autoscaling_group_id" { output "autoscaling_group_name" { value = aws_autoscaling_group.app.name } - diff --git a/providers.tf b/providers.tf index 287a72e..79cb6c3 100644 --- a/providers.tf +++ b/providers.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "~> 3.75.2" + version = "~> 4.9.0" } } } diff --git a/variables.tf b/variables.tf index d6065f2..6c98dbc 100644 --- a/variables.tf +++ b/variables.tf @@ -144,4 +144,3 @@ variable "associate_public_ip_address" { description = "Associate a public IP address with app server instances" default = "false" } -