-
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
aws_iam_group rename orphans the group #620
Comments
We have found that this also occurs with the aws_iam_user resource on Terraform 0.9.10 |
Found the same issue with the aws_iam_user resource on Terraform 0.10.7 when trying to just change the |
Encountered the same issue on both I believe this was fixed for It's really annoying as it has a lot of collateral effects when other resources depends on the the group ressource. |
The fix to prevent Terraform state removals with |
This has been released in version 2.12.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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. Thanks! |
This issue was originally opened by @james-masson as hashicorp/terraform#12882. It was migrated here as part of the provider split. The original body of the issue is below.
Terraform Version
tested with 0.8.8 & 0.9.1
Affected Resource(s)
aws_iam_group
Terraform Configuration Files
Expected Behavior
Upon renaming "testgroup01" to "testgroup02", terraform should rename AWS resource and update the state-file
Actual Behavior
Terraform updates the resource correctly:
but erases it from the state file
A second terraform run now complains about a duplicate resource.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform apply
terraform apply
The text was updated successfully, but these errors were encountered: