terraform-provider-snowflake icon indicating copy to clipboard operation
terraform-provider-snowflake copied to clipboard

snowflake_stage import doesn't work

Open mike-soukup-vividseats opened this issue 1 year ago • 1 comments

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

mike-soukup-vividseats avatar Feb 14 '24 22:02 mike-soukup-vividseats

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.

sfc-gh-asawicki avatar Feb 15 '24 09:02 sfc-gh-asawicki