Skip to content

Commit 5368a2b

Browse files
docs: Add IAM role state move to v18 upgrade doc (#2024)
Co-authored-by: Bryant Biggs <[email protected]>
1 parent 918aa7c commit 5368a2b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/UPGRADE-18.0.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ cluster_security_group_name = $CLUSTER_NAME
1313
cluster_security_group_description = "EKS cluster security group."
1414
```
1515

16+
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.
17+
18+
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:
19+
20+
```
21+
terraform state mv 'module.eks.aws_iam_role.cluster[0]' 'module.eks.aws_iam_role.this[0]'
22+
```
23+
1624
See more information [here](https://github.com/terraform-aws-modules/terraform-aws-eks/issues/1744#issuecomment-1027359982)
1725

1826
## List of backwards incompatible changes

0 commit comments

Comments
 (0)