Commit 06486105 authored by Chris Merrett's avatar Chris Merrett

Manage worker lifecycle manually to regain ability to drain/cordon workers before termination.

parent 82275a96
Pipeline #5325 passed with stage
in 20 seconds
resource "aws_launch_configuration" "workers" {
lifecycle {
create_before_destroy = true
}
associate_public_ip_address = false
ebs_optimized = "${var.ebs_optimized_workers}"
iam_instance_profile = "${aws_iam_instance_profile.workers.name}"
......@@ -14,10 +10,6 @@ resource "aws_launch_configuration" "workers" {
}
resource "aws_autoscaling_group" "workers" {
lifecycle {
create_before_destroy = true
}
desired_capacity = "${var.desired_workers}"
launch_configuration = "${aws_launch_configuration.workers.id}"
max_size = "${var.max_workers}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment