-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
17.24.0 - Error: configmaps "aws-auth" already exists #1702
Comments
does this is issue for existing cluster or created from scratch? |
@daroga0002 creating from the scratch |
I am facing a similar issue, where my apply fails due to timeout and I cannot re-apply as the aws-auth cm already exist. |
I tried replicate via example: but I dont get this error. Could you try use this example and replicate this on your side? |
This issue has been automatically marked as stale because it has been open 30 days |
@daroga0002: please correct me if mistaken but 56e93d7 (shipped in v17.24) has removed the explicit dependency between the custom kubernetes_config_map.aws_auth and the module.node_group. Therefore, if NodeGroup(s) node(s) join the cluster before the cluster endpoint becomes responsive (due to kubernetes_config_map.aws_auth being dependent on data.http.wait_for_cluster[0]), the aws-auth configMap is created and populated by the managed NodeGroup before Terraform gets to it. I suspect the race condition does not get triggered for most because the cluster endpoint resolves almost immediately after the EKS cluster is created, while the NodeGroup creation takes minutes. But for those creating private EKS clusters, name resolution convergence might take longer (i.e multiple minutes) and lead to the above. |
This issue has been resolved in version 18.0.0 🎉 |
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
eks module v17.24.0 fails to module.eks.kubernetes_config_map.aws_auth[0]
Versions
Terraform v1.0.11
on linux_amd64
Reproduction
Steps to reproduce the behavior:
using was cloud workspace
terrafrom plan
terraform apply
Code Snippet to Reproduce
Terminal Output Screenshot(s)
Additional context
the same code works with previous module versions.
The text was updated successfully, but these errors were encountered: