Closed arielbachetti closed 1 month ago
Hi @arielbachetti 👋
Function's and procedure's fully qualified name must include arguments. So, in your config, it should be like
object_name = "\"${var.database}\".\"${var.schema}\".\"${var.function_name}\"(${var.argument_type})"
If you manage this function in Terraform, we highly recommend using fully_qualified_name.
Hey @sfc-gh-jmichalak !!
Thanks for your swift answer 😄
I can't use the fully_qualified_name
with for_each
because the first time the environment is being deployed (when function does not exist yet) it would fail as fully_qualified_name
is not determined. I know it's not the best, but I'll go with building the name manually for now.
Terraform CLI Version
1.9.5
Terraform Provider Version
0.95.0
Terraform Configuration
Category
category:resource
Object type(s)
resource:grant_privileges_to_account_role
Expected Behavior
Successful apply
Actual Behavior
Got this provider crash:
Steps to Reproduce
snowflake_grant_privileges_to_account_role
resource withobject_type = "FUNCTION"
.So far it only happened with
object_type = "FUNCTION"
. ForTABLE
works without issues.How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Would you like to implement a fix?