You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.
We have the same issue when object_type = database and privileges = ["ALL"]
Without an existing state file it works fine. But when there is an existing state file it tries to add ALL again. But this causes:
REVOKE ALL PRIVILEGES ON DATABASE ....
to be executed, which fails because there are dependent privileges.
The official documentation does not say this provider suppports "ALL". If that's the case I think it should be explicitly stated in the documentation.
If the provider shall support "ALL" then I believe terraform will need to know what independent privileges form "ALL" so it knows there has been no change to the state, when it looks at what the actual state in postgreSQL is.
You can, of course, work around this by specifying all specific privileges you want to grant (INSERT, SELECT, UPDATE, DELETE, ...?) for now. But I agree with @planetjones - should either be fixed or documented and made invalid.
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
Since the grant was applied previously, I would be expecting the following output:
Actual Behavior
It tries to apply the privileges again:
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: