-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 fails when an iam user or role is renamed #7939
Comments
Hi @justin8! Thanks for opening an issue. I'd definitely consider this a bug. Can you confirm the steps you took here? I think looking at it the following is probably the case:
|
Sorry for the slow response, I've been travelling recently. I get the issue without ever touching the user in the AWS console, just creating a new iam user via terraform (and the attached policy is also managed in terraform in the same file) , renaming in the state file and running |
Duplicate of #5853 |
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. |
When renaming a role/user (probably groups as well, but I haven't tested this). It attempts to delete the old resource without detaching the policies, then returns this:
According to #3227 it sounds like this should have already been fixed, but it doesn't seem this way.
Terraform Version
v0.6.616
References
#3227
The text was updated successfully, but these errors were encountered: