Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Last active March 2, 2019 18:58
Show Gist options
  • Select an option

  • Save 100daysofdevops/3106ff611a68a6c252acdabe73a22e81 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/3106ff611a68a6c252acdabe73a22e81 to your computer and use it in GitHub Desktop.
data "aws_availability_zones" "all" {}
resource "aws_autoscaling_group" "test-asg" {
launch_configuration = "${aws_launch_configuration.asg-config.id}"
availability_zones = ["${data.aws_availability_zones.all.names}"]
target_group_arns = ["${var.target_group_arn}"]
health_check_type = "ELB"
min_size = "1"
max_size = "2"
tag {
key = "Name"
propagate_at_launch = true
value = "my-terraform-asg-example"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment