-
Notifications
You must be signed in to change notification settings - Fork 540
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 Auth Backend Role] Recreate the resource if resolve_aws_unique_ids is set to false #382
[AWS Auth Backend Role] Recreate the resource if resolve_aws_unique_ids is set to false #382
Conversation
Hi @Ninir ! Thanks for contributing this! Would it be possible to get a test that reproduces the issue, and then I can see that this solution fixes it? |
You can use this sequence for instance:
|
I am gonna rebase it also in order to get the Go Modules setup! |
ed63f1d
to
ef14904
Compare
@tyrannosaurus-becks I am under the impression that the master branch has go modules not up to date, or it's not tidied up/vendored entirely. Running go mod vendor updates a bunch of things. Do you know about that? |
@tyrannosaurus-becks I'm gonna work on that :)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Ninir ! I took a second look at this, and ran the tests locally. It would be nice to have a test recreating the failure, but I think in this case, since you do show a before/after in the PR, it should be fine. Thank you for this contribution!
[AWS Auth Backend Role] Recreate the resource if resolve_aws_unique_ids is set to false
Description
This fixes a case on
vault_aws_auth_backend_role
whereresolve_aws_unique_ids
cannot be updated fromtrue
tofalse
without recreating the resource, while updating fromfalse
totrue
is allowed (Source).Tests are passing with the following:
This also fixes a crash I encountered when adding the CustomizeDiff function, made by updating
mitchellh/copystructure
and `mitchellh/reflectway to the newest versions. Here is the crash log:Before the CustomizeDiff fix
resolve_aws_unique_ids - True to False
resolve_aws_unique_ids - False to True
After the CustomizeDiff fix
resolve_aws_unique_ids - True to False
resolve_aws_unique_ids - False to True