-
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]: Disabling EKS Auto Mode causes failure #40582
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
There is a solution for it? |
I did some debugging and I think this is caused by So when you remove the |
Does anyone have a workaround for this yet? |
So there actually seem to be multiple issues involved here when disabling auto mode:
So the only way I can see right now for disabling auto mode is to do the following:
I started working on a fix for the |
The diff customizer of the upstream provider is not taking possibly unknown values into account (see https://github.com/hashicorp/terraform-provider-aws/blob/ae93494f39ba70fe442e891caf05f8df21bde1ac/internal/service/eks/cluster.go#L1776-L1791), which causes failures like this one: ``` * compute_config.enabled, kubernetes_networking_config.elastic_load_balancing.enabled, and storage_config.block_storage.enabled must all be set to either true or false ``` This happens because `unknown` attributes just default to their empty values in a diff customizer if they're unknown . This change acts a hot fix until we can properly fix upstream's behavior here. The current diff for auto mode is quite broken and needs some more involved fixes (see hashicorp/terraform-provider-aws#40582). Fixes #1597
Created a PR that aims to fix the |
Terraform Core Version
1.9.8
AWS Provider Version
5.81.0
Affected Resource(s)
aws_eks_cluster
Expected Behavior
Ability to safely disable EKS auto mode from existing cluster
Actual Behavior
Fails with error.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Create an eks cluster and enable EKS auto mode,
Disable auto mode,
planned changes looks like this
terraform apply causes the error
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: