-
Notifications
You must be signed in to change notification settings - Fork 427
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
[Bug]: invalid OnSchemaObjectGrantKind: PROCEDURE during import #3132
Comments
Here is how to reproduce this on-demand with minimal moving parts.
|
Hi @jrobison-sb 👋 Thanks for the detailed description. There are two problems here:
(see docs). You are missing |
@sfc-gh-jmichalak thanks. I was able to get this to import using:
In case anyone stumbles upon this from google, the name of the procedure needed to include the argument type ( |
Terraform CLI Version
v1.9.1
Terraform Provider Version
v0.96.0
Terraform Configuration
Old HCL from version 0.92 of the provider:
New resource in 0.96 of the provider:
Category
category:resource
Object type(s)
resource:grant_privileges_to_account_role
Expected Behavior
I should be able to migrate this grant from version 0.92 to version 0.96 by way of
terraform state rm ... && terraform state import ...
as generally described here.Actual Behavior
I have also tried the import using slashy escape quotes around the role name and the object names, but with the same error:
Steps to Reproduce
Try to replace an old
snowflake_procedure_grant
resource with a newsnowflake_grant_privileges_to_account_role
resource by way ofterraform state rm ... && terraform import ...
.How much impact is this issue causing?
Medium
Logs
No response
Additional Information
Here is the old resource as seen in the terraform state:
And as seen in Snowflake:
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: