Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Commit

Permalink
Ignore AMI changing on worker launch config
Browse files Browse the repository at this point in the history
Prevents terraform from recreating the resource when a new CoreOS
release comes out.

This an extension of the same changes done to etcd and masters in #367
  • Loading branch information
Chance Zibolski committed Apr 27, 2017
1 parent 149477e commit d925abe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/aws/worker-asg/worker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d925abe

Please sign in to comment.