Last active
March 2, 2019 18:58
-
-
Save 100daysofdevops/3106ff611a68a6c252acdabe73a22e81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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