-
Notifications
You must be signed in to change notification settings - Fork 245
Description
Hi there,
We're having issues when assigning default privileges on schema to a specific role. The provider returns an error related to a Root object that was present and now absent. Nothing changed between plan and apply operations.
Below all the details:
Terraform Version
Terraform v1.6.1
Affected Resource(s)
Please list the resources as a list, for example:
- postgresql_default_privileges (schema)
Expected Behavior
resource "postgresql_default_privileges" "schema" {
database = "custom-database-name"
role = "custom-database-role"
object_type = "schema"
owner = "custom-database-role"
privileges = ["USAGE", "CREATE"]
}
Should grant "custom-database-role" with privileges to use and create schemas on the specified database.
Actual Behavior
This is the output that we are getting back from the previous resource creation:
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ postgresql_default_privileges.schema,
│ provider "provider[\"registry.terraform.io/cyrilgdn/postgresql\"]" produced
│ an unexpected new value: Root object was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
Steps to Reproduce
terraform apply
Important Factoids
This is running on AWS Aurora with 15.5 as engine version. At steady state we expect to have a custom schema whose owner will be "custom-database-role". The creation of the schema happens after the creation of the role and the assignmenet of deafult permissions.
Thanks in advance for your help/support :)