diff --git a/modules/aws/worker-asg/worker.tf b/modules/aws/worker-asg/worker.tf index 23bdbbd5a2..a821ff94ad 100644 --- a/modules/aws/worker-asg/worker.tf +++ b/modules/aws/worker-asg/worker.tf @@ -33,6 +33,10 @@ resource "aws_launch_configuration" "worker_conf" { lifecycle { create_before_destroy = true + # Ignore changes in the AMI which force recreation of the resource. This + # avoids accidental deletion of nodes whenever a new CoreOS Release comes + # out. + ignore_changes = ["image_id"] } root_block_device {