Open bmhah opened 5 months ago
Hey @bmhah. Thanks for reaching out to us.
Please share the terraform run logs with TF_LOG=DEBUG
enabled.
Here is the file that the customer provided me. plan.txt.gz
Any updates here?
Hey @bmhah. I will confirm in the morning, but it looks like an easy fix, so we may even be able to include it in tomorrow's release. I will keep you posted.
Hey @bmhah. We have released the new version: https://github.com/Snowflake-Labs/terraform-provider-snowflake/releases/tag/v0.89.0. Please bump and check if the error persists. Please remember to use the migration guide during version upgrades: https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-guide.
Sounds good, we'll get to testing this later this week. I'll keep this issue open in the meantime
Hey @bmhah. Have you have a chance to test the newer versions after the introduced fixes?
Yes, we've done the provider upgrade to 88 and have also used others, they haven't worked for us, the stage for this pipe still drops and recreates causing the pipe to break again
The fix was introduced in 0.89, not 0.88, so please provide the config and logs (run terraform with TF_LOG=DEBUG) on the 0.89+ version (I could not reproduce the issue given your config on the 0.89 version).
We were having the same issue with:
file_format = "FIELD_DELIMITER = '|' PARSE_HEADER = true"
Fix in https://github.com/Snowflake-Labs/terraform-provider-snowflake/pull/2885
The fix was included in v0.93.0. Please check it @guillaumelecerf @bmhah.
Hey @sfc-gh-asawicki. I have the same issue on the version 0.93.0.
terraform configuration
resource "snowflake_stage" "stage" {
database = "DATABASE_NAME"
file_format = "TYPE = CSV NULL_IF = []"
name = "NAME"
schema = "SCHEMA_NAME"
storage_integration = "INTEGRATION_NAME"
url = "s3://aaaaa"
}
I will take a look this week. Thanks for providing the config; it helps reproduce the issues.
Terraform CLI and Provider Versions
v1.5.0 0.85.0
Terraform Configuration
Expected Behavior
Stage doesn't destroy and recreate
Actual Behavior
Stage recreates, this causes snowflake pipes to break having a status
STOPPED_STAGE_DROPPED
Steps to Reproduce
terraform apply
How much impact is this issue causing?
High
Logs
No response
Additional Information
No response