-
Notifications
You must be signed in to change notification settings - Fork 982
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
Unauthorized on resource deletion in EKS #1113
Comments
@nikitazernov what did you do to fix this issue? I am seeing this as well. No explanation here on what was fixed. |
@thpang hello! Later I've figured out this issue appeared after update to terraform 0.14. After downgrading Terraform to 0.13.5 it worked. |
Yes I have come to the same conclusion, that moving back to tf 0.13.6 works, but that tf 0.14.4 does not. Have not turned on tf debugging to capture more. Hopefully someone from Hashicorp will pick this up. |
The problem seems to be in terraform, not in the kubernetes provider - hashicorp/terraform#27172 |
Have the same issue. Running refresh before destroy seemed to work. Looks like aws_eks_cluster_auth is not refreshing. During destroy (even with a refresh before) and plan/apply. |
This is unfortunately a common problem when EKS credentials expire and the Kubernetes provider attempts to initialize using the outdated credentials. See this comment for more details and a work-around. #1131 (comment) |
The fix is announced only in the changelog of the (upcoming) v0.15.0 release |
Closing since it's fixed upstream. |
Just as a side note, given this issue was not fixed at all in v0.14.x this is going to cause folks that need this functionality to completely skip the v0.14.x of terraform for their work. I know we will ;) |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
All resources
Terraform Configuration Files
Debug Output
https://gist.github.com/nikitazernov/282139c480c47f2a7df47ed846b1f774
Panic Output
Steps to Reproduce
Expected Behaviour
Actual Behaviour
Important Factoids
Cluster is running on AWS EKS. Resource deletion using
kubectl
with the same AWS credentials is successful.Here are snippets from EKS logs:
https://gist.github.com/nikitazernov/6db450ac4b10d2779c571fe0281c1852
The user is empty on deletion, but persists in all other requests.
References
Community Note
The text was updated successfully, but these errors were encountered: