From c65d3085037d9c1c87f4fd3a5be1ca1d732dbf7a Mon Sep 17 00:00:00 2001 From: William Paul Evans Date: Tue, 21 May 2024 15:01:04 -0400 Subject: [PATCH] fix: Ignore changes to `bootstrap_cluster_creator_admin_permissions` which is disabled by default (#3042) * Ignore changes to bootstrap_cluster_creator_admin_permissions to allow upgrading module and importing existing clusters * Update main.tf Co-authored-by: Igor Brites * fix attribute reffernce --------- Co-authored-by: Igor Brites --- main.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.tf b/main.tf index 2f169936a0..dd638f298d 100644 --- a/main.tf +++ b/main.tf @@ -102,6 +102,12 @@ resource "aws_eks_cluster" "this" { aws_cloudwatch_log_group.this, aws_iam_policy.cni_ipv6_policy, ] + + lifecycle { + ignore_changes = [ + access_config["bootstrap_cluster_creator_admin_permissions"] + ] + } } resource "aws_ec2_tag" "cluster_primary_security_group" {