Closed languitar closed 3 years ago
Just to keep the issues clear I'm going to close this but link to #279 as related for our devs to see but part of the larger issue.
After chatting with our developers going to re-open this so we can split to two separate work items.
Alright, as my comment on #279 is probably more related to this issue, here it is again:
Another aspect of this thing could be the following:
~ inherited_roles {
~ database_name = "history" -> "userdata"
role_name = "readWrite"
}
inherited_roles {
database_name = "catalog"
role_name = "readWrite"
}
~ inherited_roles {
~ database_name = "userdata" -> "cache"
role_name = "readWrite"
}
~ inherited_roles {
~ database_name = "cache" -> "history"
role_name = "readWrite"
}
Seems the sorting wasn't correctly applied in the previous iteration and now this diff reappears everytime.
Thank you @languitar for adding that and understanding the back and forth here. We'll update each issue as progress is made.
Hello, @languitar thank you so much for your review, I made changes resolving this issue could you test it to check if everything is okay? Also, let me know if you have another comment or concern, thanks.
@languitar we've released a preview version that should allow you to test if this fixes the issue. If you can confirm we'd appreciate it. https://github.com/mongodb/terraform-provider-mongodbatlas/releases/tag/0.6.4
We will try our best within the next few days.
@languitar certainly let us know when ever works for you. We will probably proceed w/ a full release of 0.6.4 as it looks good but happy to address any further issues. Just us know.
@languitar just wanted to check in and see if we are good here?
Sorry, we somehow forgot testing this so far.
We got around to test this and it worked as expected. Thank you for the fix :+1:
Thank you @Jeinhaus for the confirmation! I'll close this then but if any related issues feel free to open a new issue.
Due to #279 I have rebuilt an existing role (created via the Web UI) with basic permissions instead of inherited roles. As a consequence, the plan output includes adding
actions
and also removing the inherited roles:After applying this plan, the inherited roles are still present and the next plan iteration again tried to remove them:
This happens with terraform v0.12.27 and provider 0.6.0.