This repository was archived by the owner on Nov 14, 2020. It is now read-only.
This repository was archived by the owner on Nov 14, 2020. It is now read-only.
Postgresql provider always triggers change when privileges = "ALL" #166
Open
Description
Terraform Version
Terraform v0.12.29
+ provider.postgresql v1.7.1
Affected Resource(s)
Please list the resources as a list, for example:
- postgresql_grant
Terraform Configuration Files
provider "postgresql" {
host = "xxxxx.us-east-1.rds.amazonaws.com"
port = "5432"
username = "master"
password = "xxxxx"
sslmode = "require"
connect_timeout = 15
superuser = false
}
resource "postgresql_grant" "this" {
database = "somedb"
object_type = "table"
privileges = [
"ALL",
]
role = "someuser"
schema = "public"
with_grant_option = true
}
Expected Behavior
Since the grant was applied previously, I would be expecting the following output:
No changes. Infrastructure is up-to-date.
Actual Behavior
It tries to apply the privileges again:
Terraform will perform the following actions:
# postgresql_grant.this will be updated in-place
~ resource "postgresql_grant" "this" {
database = "somedb"
id = "someuser_somedb_public_table"
object_type = "table"
~ privileges = [
+ "ALL",
]
role = "someuser"
schema = "public"
with_grant_option = true
}
Plan: 0 to add, 1 to change, 0 to destroy.
Steps to Reproduce
terraform apply
Metadata
Metadata
Assignees
Labels
No labels