Skip to content

postgresql_grant replaces ALL with each permission each apply #571

@josh-green-awaze

Description

@josh-green-awaze

This looks to be a similar issue to #321 but with the ALL permission being splatted out to each permission on apply but not being detected as the same in the following apply.

Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # postgresql_default_privileges.x will be updated in-place
  ~ resource "postgresql_default_privileges" "x" {
        id                = "x"
      ~ privileges        = [
          - "DELETE",
          - "INSERT",
          - "MAINTAIN",
          - "REFERENCES",
          - "SELECT",
          - "TRIGGER",
          - "TRUNCATE",
          - "UPDATE",
          + "ALL",
        ]
        # (6 unchanged attributes hidden)
    }

  # postgresql_grant.x will be updated in-place
  ~ resource "postgresql_grant" "x" {
        id                = "x"
      ~ privileges        = [
          - "DELETE",
          - "INSERT",
          - "MAINTAIN",
          - "REFERENCES",
          - "SELECT",
          - "TRIGGER",
          - "TRUNCATE",
          - "UPDATE",
          + "ALL",
        ]
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 2 to change, 0 to destroy.

We could change the definition to have all of them listed instead of ALL, but that defeats the point of ALL 😄

This is using v1.26 of the provider

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions