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]: Support USAGE ON DATASET grants in snowflake_grant_privileges_to_account_role #2894

Closed
1 task
danu165 opened this issue Jun 28, 2024 · 2 comments
Closed
1 task
Labels
category:grants feature-request Used to mark issues with provider's missing functionalities

Comments

@danu165
Copy link

danu165 commented Jun 28, 2024

Use Cases or Problem Statement

I attempted to use the latest provider to grant usage on a dataset like so:

resource "snowflake_grant_privileges_to_account_role" "model" {
  privileges        = ["USAGE"]
  account_role_name = local.account_role
  on_schema_object {
    object_type = "DATASET"
    object_name = "MY_DB.MY_SCHEMA.MY_DATASET"
  }
}

But got this error:

│ Error: expected [{{} on_schema_object} {{} {{{{} 78}} 0xc000d2a3c0}} {{} object_type}] to be one of ["AGGREGATION POLICY" "ALERT" "AUTHENTICATION POLICY" "DATA METRIC FUNCTION" "DYNAMIC TABLE" "EVENT
TABLE" "EXTERNAL TABLE" "FILE FORMAT" "FUNCTION" "GIT REPOSITORY" "HYBRID TABLE" "IMAGE REPOSITORY" "ICEBERG TABLE" "MASKING POLICY" "MATERIALIZED VIEW" "MODEL" "NETWORK RULE" "PACKAGES POLICY" "PASSWOR
D POLICY" "PIPE" "PROCEDURE" "PROJECTION POLICY" "ROW ACCESS POLICY" "SECRET" "SERVICE" "SESSION POLICY" "SEQUENCE" "STAGE" "STREAM" "TABLE" "TAG" "TASK" "VIEW" "STREAMLIT"], got DATASET

Category

category:grants

Object type(s)

resource:grant_privileges_to_account_role

Proposal

Add DATASET as an option for object_type within resource snowflake_grant_privileges_to_account_role

How much impact is this issue causing?

Low

Additional Information

No response

Would you like to implement a fix?

  • Yeah, I'll take it 😎
@danu165 danu165 added the feature-request Used to mark issues with provider's missing functionalities label Jun 28, 2024
@sfc-gh-jmichalak
Copy link
Collaborator

Duplicates #2807.

@sfc-gh-asawicki
Copy link
Collaborator

Closing as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:grants feature-request Used to mark issues with provider's missing functionalities
Projects
None yet
Development

No branches or pull requests

3 participants