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

Grants for procedure/function always re-applied #98

Open
proffase opened this issue Dec 6, 2022 · 0 comments
Open

Grants for procedure/function always re-applied #98

proffase opened this issue Dec 6, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@proffase
Copy link

proffase commented Dec 6, 2022

We are trying to grant "execute" for a number of groups on procedure/functions in public schema and terraform constantly wants to re-apply grants.

# redshift_grant.grant_group_public_schema_procedure_grants["xapi"] will be updated in-place
  ~ resource "redshift_grant" "grant_group_public_schema_procedure_grants" {
        id          = "gn:xapi_ot:procedure_public"
      ~ privileges  = [
          + "execute",
        ]
        # (3 unchanged attributes hidden)
    }

DEBUG logs snippet:

2022/12/06 12:19:10 [WARN] Provider "registry.terraform.io/brainly/redshift" produced an unexpected new value for redshift_grant.grant_group_public_schema_procedure_grants["xapi"] during refresh.
      - .privileges: planned set element cty.StringVal("execute") does not correlate with any element in actual
2022/12/06 12:19:10 [TRACE] EvalWriteState: using RefreshState for redshift_grant.grant_group_public_schema_procedure_grants["xapi"]
2022/12/06 12:19:10 [TRACE] EvalWriteState: recording 51 dependencies for redshift_grant.grant_group_public_schema_procedure_grants["xapi"]

Redshift provider version: 1.0.3
Terraform version: 0.14.9

Symptoms look similar to #94 .

@winglot winglot added the bug Something isn't working label Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants