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

Pulumi refresh throwing TableGrant error: "* 1 to 6 fields allowed in ID" #283

Closed
mattotodd opened this issue Jul 7, 2023 · 2 comments
Closed
Labels
awaiting-feedback Blocked on input from the author kind/bug Some behavior is incorrect or out of spec
Milestone

Comments

@mattotodd
Copy link

What happened?

Trying to run a preview/update and as part of that process i run a refresh and get the following error:

error: Preview failed: refreshing urn:pulumi:stack::project::snowflake:index/tableGrant:TableGrant::grant_select_on_sourcedata_to_loader: 1 error occurred:
	* 1 to 6 fields allowed in ID

Expected Behavior

There are no changes to the snowflake grants, so i dont expect any changes there, and this type of refresh has been working fine for months.

Steps to reproduce

run pulumi refresh on a stack with snowflake grants

Output of pulumi about

pulumi about
CLI
Version 3.73.0
Go Version go1.20.5
Go Compiler gc

Additional context

assuming it has to do with the convention im using for the grant ID, but i'm not seeing anything that has changed, so not sure why it started throwing now.

state for this grant:

{
                    "urn": "urn:pulumi:stack::project::snowflake:index/tableGrant:TableGrant::grant_select_on_sourcedata_to_loader",
                    "custom": true,
                    "id": "PROD_SOURCE_DATA|||SELECT|false|true|false|PROD_TRANSFORMER_TEST,PROD_LOADER,PROD_TRANSFORMER|",
                    "type": "snowflake:index/viewGrant:ViewGrant",
                    "inputs": {
                        "__defaults": [
                            "withGrantOption"
                        ],
                        "databaseName": "PROD_SOURCE_DATA",
                        "enableMultipleGrants": true,
                        "onFuture": true,
                        "privilege": "SELECT",
                        "roles": [
                            "PROD_LOADER",
                            "PROD_TRANSFORMER_TEST",
                            "PROD_TRANSFORMER"
                        ],
                        "withGrantOption": false
                    }

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@mattotodd mattotodd added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Jul 7, 2023
@aq17
Copy link
Contributor

aq17 commented Jul 11, 2023

Hi @mattotodd , thanks for opening this issue. I'm having trouble repro'ing, but in the latest upstream release, it looks like tableGrant, along with numerous other grant resources, are being deprecated in favor of a new resource GrantPrivilegesToRole https://www.pulumi.com/registry/packages/snowflake/api-docs/grantprivilegestorole/. Would it be possible to port over to that and report if it solves the issue?

@aq17 aq17 added awaiting-feedback Blocked on input from the author and removed needs-triage Needs attention from the triage team labels Jul 11, 2023
@mjeffryes
Copy link
Member

Closing due to inactivity

@mjeffryes mjeffryes closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2023
@mikhailshilkov mikhailshilkov added this to the 0.93 milestone Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-feedback Blocked on input from the author kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

4 participants