-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: aws_eks_cluster
opting into EKS Auto Mode with built in node pools is currently requiring the cluster to be replaced
#40411
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
|
This issue is also true for custom node pools too even though aws docs support creating node pools https://docs.aws.amazon.com/eks/latest/userguide/create-node-pool.html but there is option to specify custom node pools too. |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
No you are not right because it has been fixed and will be shipped in v5.80.1 and not 5.80.0 so please wait for it to be released |
I assumed that merging to master already had triggered a release. |
This functionality has been released in v5.81.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
This should help you to sleep : https://dev.to/aws-builders/eks-auto-mode-unlocked-for-existing-clusters-with-terraform-545i |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
Any
AWS Provider Version
5.79.0
Affected Resource(s)
Expected Behavior
Users should be able to opt into EKS Auto Mode with existing clusters without requiring the cluster to be recreated. This is possible without using the built in nodepools, but currently not possible if users utilize one of the built in nodepools (
system
,general-purpose
)The set of behaviors are:
compute_config.enabled = true
and setting acompute_config.node_role_arn
is a valid in-place changecompute_config.enabled = false
even with acompute_config.node_role_arn
specified is a valid in-place changecompute_config.enabled = true
, changingcompute_config.node_role_arn
from one ARN value to another is not a valid in-place change; this change can only be made by re-placing the clusterMore context: these behaviors are defined due to the use of the IAM role by the instances created by EKS Auto Mode. Removing the ARN when disabling
compute_config
is valid because the instances that use the ARN will be destroyed/removed. Changing the ARN in-place would require changing the IAM role on *all instances that have been created by EKS Auto ModeActual Behavior
Opting into EKS Auto Mode with an existing cluster and specifying a
node_role_arn
is wanting to re-create the cluster since thenode_role_arn
value is changing (from undefined to defined)Relevant Error/Panic Output Snippet
Terraform Configuration Files
See steps to repro below - will open a draft PR that includes the updated acceptance test that demonstrates the issue
Steps to Reproduce
terraform plan
compute_config.node_role_arn
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: