Created
April 4, 2020 19:03
-
-
Save blogumi/eb6fda9e8edf453ed9d68d6664c43285 to your computer and use it in GitHub Desktop.
This file contains 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" "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