From 5368a2bbd1bdb4e84e547ba111ef8477dfe36c08 Mon Sep 17 00:00:00 2001 From: Marcus Schiesser Date: Fri, 6 Oct 2023 20:15:33 +0700 Subject: [PATCH] docs: Add IAM role state move to v18 upgrade doc (#2024) Co-authored-by: Bryant Biggs --- docs/UPGRADE-18.0.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/UPGRADE-18.0.md b/docs/UPGRADE-18.0.md index 3bfb672..481e9fe 100644 --- a/docs/UPGRADE-18.0.md +++ b/docs/UPGRADE-18.0.md @@ -13,6 +13,14 @@ cluster_security_group_name = $CLUSTER_NAME cluster_security_group_description = "EKS cluster security group." ``` +This configuration assumes that [`create_iam_role`](https://github.com/terraform-aws-modules/terraform-aws-eks#input_create_iam_role) is set to `true`, which is the default value. + +As the location of the Terraform state of the IAM role has been changed from 17.x to 18.x, you'll also have to move the state before running `terraform apply` by calling: + +``` +terraform state mv 'module.eks.aws_iam_role.cluster[0]' 'module.eks.aws_iam_role.this[0]' +``` + See more information [here](https://github.com/terraform-aws-modules/terraform-aws-eks/issues/1744#issuecomment-1027359982) ## List of backwards incompatible changes