-
Notifications
You must be signed in to change notification settings - Fork 315
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
Execution plan incorrect and failure : try to update a role which was detroyed by the same plan #533
Comments
Hi @semangard 👋 Based on the logs you provided, it looks like the role with ID Would you be able to provide a minimal Terraform configuration that reproduces this issue? |
Hello @mrparkers,
According to me the order of the steps should be the opposite:
Here is my commit where the role deleted was also unassigned to the group (commented it) Please not:
|
I have been able to reproduce it the failure at 100%: Here is the execution with the failure at the end:
|
@mrparkers : do you confirm my analysis (cf. reproduce case) and thus that there is a bug ? |
Hey @semangard, I was able to reproduce this locally. Thanks for the detailed bug report. I opened #538 to fix this. |
Hi @mrparkers BTW I am wondering if we could face the same issue with other realtionships (associations between objects) like for example:
Maybe it should be checked also. |
Good point - although I did check for this before I submitted the PR. The |
Hello @mrparkers Despite I am using latest version : Have you released the fix ? |
Hi @mrparkers |
Hey @semangard, this seems like a different issue. I can try to reproduce this if you can give me a sample HCL snippet to work with. |
Hey @semangard, I tried to follow your instructions, but I wasn't able to reproduce this. I tried writing some HCL similar to what I saw in your screenshots - an openid client, a few client roles, a few groups, and some group role assignments. Then, I added a data source for the openid client and referenced that with the roles, and got no changes from Terraform (as expected). I also tried adding a new client and moving the roles to that client, and everything was recreated auccessfully. It would help me if you could give me some exact HCL to copy/paste, and instructions on how to modify the HCL to reproduce this. Thanks! |
Hi @mrparkers |
Closing for now, feel free to open if this issue comes back. |
Hello,
I have the following error into the same TF execution plan:
==> Why a resource is updated whereas it was just destroyed by the same execution plan ?
Full execution plan
The text was updated successfully, but these errors were encountered: