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

Support for any object_type in postgresql_default_privileges #470

Open
loganmzz opened this issue Sep 23, 2024 · 0 comments
Open

Support for any object_type in postgresql_default_privileges #470

loganmzz opened this issue Sep 23, 2024 · 0 comments

Comments

@loganmzz
Copy link

Terraform Version

Terraform v1.5.7
on linux_amd64
+ provider registry.terraform.io/cyrilgdn/postgresql v1.23.0
+ provider registry.terraform.io/hashicorp/aws v5.68.0
+ provider registry.terraform.io/hashicorp/random v3.6.2

Affected Resource(s)

  • postgresql_default_privileges

Terraform Configuration Files

resource "postgresql_default_privileges" "this" {
  role = "main"
  database = "postgres"
  schema = "public"

  owner = "admin"
  object_type = "routine"
  privileges = ["EXECUTE"]
}

Panic Output

│ Error: expected object_type to be one of [table sequence function type schema], got routine
│ 
│   with postgresql_default_privileges.this,
│   on main.tf line 7, in resource "postgresql_default_privileges" "this":
│  7:   object_type = "routine"

Expected Behavior

Support any PgSQL supported type (documentation: https://www.postgresql.org/docs/current/sql-alterdefaultprivileges.html)

Actual Behavior

Plan error

Steps to Reproduce

  1. terraform plan

Important Factoids

N/A

References

N/A

@loganmzz loganmzz changed the title Support for "type" object_type in postgresql_default_privileges Support for any object_type in postgresql_default_privileges Sep 23, 2024
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

1 participant