-
-
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
terraform destroy errors when using worker_group_launch_templates #841
Comments
2 tasks
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have issues
I'm submitting a...
What is the current behavior?
When using worker group launch templates with managed IAM resources, if an error happens during
terraform destroy
after destroying theaws_iam_instance_profile.workers_launch_template
but before all resources are destroyed, when runningterraform destroy
again, this error will happen,If this is a bug, how to reproduce? Please include a code sample if relevant.
The bug seems to arise when errors while running
terraform destroy
interrupt the process, leading to an inconsistent state whereaws_iam_instance_profile.workers_launch_template
has been deleted, but thelocal.auth_launch_template_worker_roles
variable depends on its existence, so this leads to a new error when rerunningterraform destroy
, preventing teardown even after the original error has been fixed. This should happen in any cluster usingworker_group_launch_templates
whenmanage_worker_iam_resources = true
, but the specific configuration I was using wasWhat's the expected behavior?
This should not prevent the module from destroying remaining resources when rerunning
terraform destroy
Are you able to fix this problem and submit a PR? Link here if you have already.
Yes, the solution is a one-line fix that already exists when using
worker_groups
, but not forworker_groups_launch_templates
.#842
Environment details
Any other relevant info
The text was updated successfully, but these errors were encountered: