Closed jonasneves closed 4 years ago
@jonasneves Thanks for opening this issue.
We encountered the same problem (on role deletion) indeed and we'll create a bugfix release for that as soon as possible.
Those random users roles are members of the "master"
It matters yes, the provider tries to temporary grant the randomuser
to the admin user (master
in your case) but cannot as there's already the opposite membership (master
is granted to randomuser
)
Terraform Version
Terraform v0.12.28
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Change privileges of the role that the terraform plan indicates that needs to be changed.
Terraform plan:
Actual Behavior
In the terraform output, the "Creating" message shows the correct action that should be made, but the error indicates that it was trying to do something else, it tries to grant a random user role to the "master" role.
Terraform output:
Note that may or may not matter: _Those random users roles are members of the "master" and "rdsiam" roles
Workaround
I had to constrain the postgresql provider to the version 1.6.0, which works as expected.