From c8313751d7ec4af5766cc93c7cd29ccbc2cb7a7d Mon Sep 17 00:00:00 2001 From: Stephen Augustus Date: Thu, 15 Feb 2018 15:33:02 -0800 Subject: [PATCH] Ignore lifecycle changes to the AWS controller ami --- aws/container-linux/kubernetes/controllers.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aws/container-linux/kubernetes/controllers.tf b/aws/container-linux/kubernetes/controllers.tf index d748aeda..ff1e571c 100644 --- a/aws/container-linux/kubernetes/controllers.tf +++ b/aws/container-linux/kubernetes/controllers.tf @@ -36,6 +36,10 @@ resource "aws_instance" "controllers" { associate_public_ip_address = true subnet_id = "${element(aws_subnet.public.*.id, count.index)}" vpc_security_group_ids = ["${aws_security_group.controller.id}"] + + lifecycle { + ignore_changes = ["ami"] + } } # Controller Container Linux Config