Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants