Skip to content
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

"Failed to delete the resource as it has associated memberships in the system." when removing a user from a group #321

Closed
erezdeveleap opened this issue Feb 28, 2023 · 1 comment

Comments

@erezdeveleap
Copy link

Hey!

I have a user attached to a group (same tenant), and that group has 2 roles (from different tenant - using data)
It should have disconnected that user successfully, however for some weird reason, terraform having issues disconnecting it by claiming it has associated memberships, while in practice - this (group) is the sole membership to the user.. (couldn't find any other group associated to it)

Terraform code:
image

Memberships according to the UI:
image

Error
image

@loafoe
Copy link
Member

loafoe commented Apr 24, 2023

@erezdeveleap not able to reproduce. I do see you are using hsdp_iam_group_membership which carries a warning on creating out of band memberships. While this might not be related it could be a side effect of the order in which Terraform schedules delete operations. Please re-open this if you encounter the issue again, we will then try to reproduce. Closing for now.

@loafoe loafoe closed this as completed Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants