Skip to content

Instantly share code, notes, and snippets.

@lawliet89
Created September 3, 2018 04:37
Show Gist options
  • Save lawliet89/e3670e4b1ba06fcd33f53ec5c07b870c to your computer and use it in GitHub Desktop.
Save lawliet89/e3670e4b1ba06fcd33f53ec5c07b870c to your computer and use it in GitHub Desktop.
Terraform Demo Snippet
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