Skip to content

Instantly share code, notes, and snippets.

@blogumi
Created April 4, 2020 19:03
Show Gist options
  • Save blogumi/eb6fda9e8edf453ed9d68d6664c43285 to your computer and use it in GitHub Desktop.
Save blogumi/eb6fda9e8edf453ed9d68d6664c43285 to your computer and use it in GitHub Desktop.
resource "aws_autoscaling_group" "demo" {
desired_capacity = 2
launch_configuration = aws_launch_configuration.demo.id
max_size = 2
min_size = 1
name = "terraform-eks-demo"
vpc_zone_identifier = [aws_subnet.demo.*.id]
tag {
key = "Name"
value = "terraform-eks-demo"
propagate_at_launch = true
}
tag {
key = "kubernetes.io/cluster/${var.cluster-name}"
value = "owned"
propagate_at_launch = true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment