You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a user parameter like QUERY_TAG, through terraform, the resource is created but it cannot be read, resulting in the below error every time that one tries to read the plan after creation
resource "snowflake_object_parameter" "qt" {
key = "QUERY_TAG"
value = "somevalue"
object_type = "USER"
object_identifier {
name = snowflake_user.myuser.name
}
}
Run terraform plan and terraform apply. You should see the above error but you should be able to see the query tag in snowflake with show parameters like '%query_tag%' for user myuser;
The text was updated successfully, but these errors were encountered:
Summary
When creating a user parameter like
QUERY_TAG
, through terraform, the resource is created but it cannot be read, resulting in the below error every time that one tries to read the plan after creationI'm trying to recreate the below SQL statement, which works if executed in the console:
Likely cause
After digging in the logic a bit, it seems that the function
ShowObjectParameter
does not support the User object, which causes an error when it's called fromReadObjectParameter
orCreateObjectParameter
Steps to reproduce
Create a query tag as:
Run
terraform plan
andterraform apply
. You should see the above error but you should be able to see the query tag in snowflake withshow parameters like '%query_tag%' for user myuser;
The text was updated successfully, but these errors were encountered: