Thank you for opening an issue. Please provide the following information:
Terraform Version
Terraform v1.2.5
on darwin_amd64
+ provider registry.terraform.io/cyrilgdn/postgresql v1.17.1
+ provider registry.terraform.io/hashicorp/aws v4.46.0
+ provider registry.terraform.io/hashicorp/external v2.2.3
+ provider registry.terraform.io/hashicorp/random v3.4.3
Your version of Terraform is out of date! The latest version
is 1.3.7. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
postgresql_grant
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Hi there,
Thank you for opening an issue. Please provide the following information:
Terraform Version
Affected Resource(s)
postgresql_grant
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Expected Behavior
As ways to test ways around this issue: https://github.com/cyrilgdn/terraform-provider-postgresql/issues/208 I added create_before_destroy on
postgres_grant
i expected changed grants to occur before revoking.Actual Behavior
The new grants are applied, but then ALL grants are revoked. This means
create_before_destroy
is actively harmful when being added topostgresql_grant
Steps to Reproduce
terraform apply
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example: