Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Please support better behavior for 'ALL' postgresql_grant #174

Closed
nneul opened this issue Jan 9, 2022 · 1 comment
Closed

Feature: Please support better behavior for 'ALL' postgresql_grant #174

nneul opened this issue Jan 9, 2022 · 1 comment

Comments

@nneul
Copy link

nneul commented Jan 9, 2022

Please have the module either

A) reject use of 'ALL'
or
B) make a better effort to translate internally to the list of valid privileges
or at least
C) document that this is expected behavior (won't ever reach stable state) in the provider docs

when using privileges = ["ALL"]

Terraform Version

Terraform v1.1.2
on linux_amd64
+ provider registry.terraform.io/cyrilgdn/postgresql v1.14.0
+ provider registry.terraform.io/datadog/datadog v3.7.0
+ provider registry.terraform.io/hashicorp/aws v3.71.0
+ provider registry.terraform.io/hashicorp/external v2.2.0
+ provider registry.terraform.io/hashicorp/vault v3.1.1

Affected Resource(s)

Please list the resources as a list, for example:

  • postgresql_grant

Expected Behavior

Nothing should happen after first apply

Actual Behavior

Thinks resource needs to be updated on every run due to pg translating 'ALL' into the individual grants and needing to be updated on every apply.

If you list out the privileges individually, it behaves as expected.

@cyrilgdn
Copy link
Owner

Thanks for opening this issue, I allow myself to close it as it's a duplicate of #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants