From b61d6373c543a0757048136d1c47182bc0ef3ff2 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Sat, 10 Mar 2018 13:13:48 -0800 Subject: [PATCH] Add ignore_changes for AWS worker image_id --- CHANGES.md | 1 + aws/container-linux/kubernetes/workers/workers.tf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 32cb47df..bdf9cbab 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -18,6 +18,7 @@ Notable changes between versions. * Require terraform-provider-aws 1.7.0 or higher * Allow groups of workers to be defined and joined to a cluster (i.e. worker pools) ([#150](https://github.com/poseidon/typhoon/pull/150)) * Add kubelet `--volume-plugin-dir` flag to allow flexvolume plugins ([#142](https://github.com/poseidon/typhoon/pull/142)) +* Fix controller and worker launch configs to ignore AMI changes ([#126](https://github.com/poseidon/typhoon/pull/126), [#158](https://github.com/poseidon/typhoon/pull/158)) #### Digital Ocean diff --git a/aws/container-linux/kubernetes/workers/workers.tf b/aws/container-linux/kubernetes/workers/workers.tf index da251b02..1a9cfeeb 100644 --- a/aws/container-linux/kubernetes/workers/workers.tf +++ b/aws/container-linux/kubernetes/workers/workers.tf @@ -24,7 +24,6 @@ resource "aws_autoscaling_group" "workers" { lifecycle { # override the default destroy and replace update behavior create_before_destroy = true - ignore_changes = ["image_id"] } tags = [{ @@ -53,6 +52,7 @@ resource "aws_launch_configuration" "worker" { lifecycle { // Override the default destroy and replace update behavior create_before_destroy = true + ignore_changes = ["image_id"] } }