-
Notifications
You must be signed in to change notification settings - Fork 161
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
problem destroying created users if they are pending #761
Comments
Hello @ninjadude333, I was able to successfully run terraform apply and destroy on the terraform configuration above. The debug output above tries to remove 2 organization memberships but the config depicts adding only 1 membership. Can you confirm that, With regards to an apply failing when re-adding a user that was already pending, this is the expected behaviour. For every user added to an org, an organization member is created and associated to that user regardless of the user status. For an existing |
hi,
about the re-apply the message might be correct, but it should just skip the creation, and not break the entire apply run. thanks, |
Hi, Thanks for sending an updated config. I was able to reproduce the issue, I have added some details and proposed solution. When using As a result, during the destroy phase, each instance of the What is needed here, is for Terraform to create just 1 instance of
|
great, works like a charm :) |
Terraform Cloud/Enterprise version
Terraform version
Terraform Configuration Files
Debug Output
Expected Behavior
the destory run should have completed successfully and delete the pending users. (or at least finish the run without breaking)
Actual Behavior
destroy run is failing with the above error
Additional Context
if the pending user was already pending, then the apply run will also fail with the error:
The text was updated successfully, but these errors were encountered: