terraform-provider-snowflake
terraform-provider-snowflake copied to clipboard
snowflake_stage import doesn't work
Terraform CLI and Provider Versions
Terraform v1.2.0
on darwin_amd64
+ provider registry.terraform.io/hashicorp/aws v5.36.0
+ provider registry.terraform.io/snowflake-labs/snowflake v0.84.1
Your version of Terraform is out of date! The latest version
is 1.7.3. You can update by downloading from https://www.terraform.io/downloads.html
Terraform Configuration
# format is database name | schema name | stage name
terraform import snowflake_stage.example 'dbName|schemaName|stageName'
resource "snowflake_stage" "example" {
provider = snowflake.sys_admin
name = "NAME"
url = "<URL>"
database = local.database_landing_name
schema = local.schema_vegas_name
}
Expected Behavior
I expect to be able to import a Snowflake stage into my statefile so I can source control the resource. However, the import command does not work as described in the documentation: https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/stage
Actual Behavior
Error: Cannot import non-existent remote object
Steps to Reproduce
terraform import snowflake_stage.example 'dbName|schemaName|stageName'
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Hey @mike-soukup-vividseats. Thanks for reaching out to us.
We have improving the existing GA resources on our roadmap (https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/ROADMAP.md#our-roadmap). We will make sure to visit this topic then.