Created
September 3, 2018 04:37
-
-
Save lawliet89/e3670e4b1ba06fcd33f53ec5c07b870c to your computer and use it in GitHub Desktop.
Terraform Demo Snippet
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
resource "aws_autoscaling_group" "client" { | |
launch_configuration = "${aws_launch_configuration.client.name}" | |
name = "${var.client_asg_name}" | |
vpc_zone_identifier = "${var.subnet_ids}" | |
min_size = "${var.client_size}" | |
max_size = "${var.client_size}" | |
desired_capacity = "${var.client_size}" | |
health_check_type = "ELB" | |
tag { | |
key = "Name" | |
value = "${var.client_asg_name}" | |
propagate_at_launch = true | |
} | |
# Wait for Terraform 0.12 to interpolate tags from var.tags | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment