Closed mike-soukup-vividseats closed 1 month ago
Hi @mike-soukup-vividseats 👋
I can't reproduce this issue. Could you share logs with TF_LOG=DEBUG
? Also, can you confirm in Snowsight that DESCRIBE FUNCTION "LANDING"."GA"."flatten_ga_params"(VARIANT)
returns the function you want to import?
Hi @sfc-gh-jmichalak I can confirm that the function does exist in Snowflake. I validated the id from an old statefile to be this: "\"LANDING\".\"GA\".\"flatten_ga_params\"(VARIANT)"
But even this throws the same error when I try to import it. Due to some sensitive info, I do not wish to share the debug logs.
Can you give more context where this error message would come from? Can you validate the terraform import syntax is correct?
I think that the name in Snowflake is upper case, but you try importing with lower case (flatten_ga_params
). Please try importing with upper case. In Terraform case is sensitive.
Well, I was skeptical, but that worked!
terraform import 'snowflake_function.flatten_ga_params' "\"LANDING\".\"GA\".\"FLATTEN_GA_PARAMS\"(VARIANT)"
Capitalizing the function name led to a successful import!
Cool, can we close this issue, then?
Closing the issue due to inactivity.
Terraform CLI Version
1.5.7
Terraform Provider Version
0.95.0
Terraform Configuration
Category
category:import
Object type(s)
No response
Expected Behavior
I expect this resource to be imported into the statefile.
Actual Behavior
Import is prepared but Error: object does not exist is returned
Steps to Reproduce
Copy the configuration and run the import provided.
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Would you like to implement a fix?