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
As we did not change anything on our resources during the upgrade to version 0.80.0, we expected a Terraform plan (& Terraform apply) without any change.
Actual Behavior
Error Log form DevOps Pipeline:
Error: Provider produced invalid plan
│
│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an
│ invalid value for
│ module.account_usage.snowflake_task. task_xyz.error_integration:
│ planned value cty.StringVal("") for a non-computed attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
╷
│ Error: Provider produced invalid plan
│
│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an
│ invalid value for
│ module.account_usage.snowflake_task. task_xyz.allow_overlapping_execution:
│ planned value cty.False for a non-computed attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
╷
│ Error: Provider produced invalid plan
│
│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an
│ invalid value for
│ module.account_usage.snowflake_task.task_xyz.after:
│ planned value cty.ListValEmpty(cty.String) for a non-computed attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
│ Error: Provider produced invalid plan
│
│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an
│ invalid value for
│ module.account_usage.snowflake_task.task_xyz.warehouse:
│ planned value cty.StringVal("") for a non-computed attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
╷
│ Error: Provider produced invalid plan
│
│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an
│ invalid value for
│ module.account_usage.snowflake_task.task_xyz.when:
│ planned value cty.StringVal("") for a non-computed attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
╷
│ Error: Provider produced invalid plan
│
│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an
│ invalid value for
│ module.account_usage.snowflake_task.task_xyz.session_parameters:
│ planned valu_e cty.MapValEmpty(cty.String) for a non-computed attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
=> Hence, for all configuration parameters which we did not use in our resource befor the upgrade, we got an error.
We tried to work around this by including non-conflicting, missing attributes into the resource configuration like this:
As expected, we only are left with the above error for parameter “warehouse” and “after” which we can not resolve like this due to being conflicting with other parameters.
According to the resource code and documentation those parameters should all be optional and we should not get any error when upgrading the provider only.
Steps to Reproduce
terraform init (using constraint on provider version 0.47.0)
terraform plan
terraform apply
terraform init -upgrade (without constraint on provider version => upgrade to version 0.80.0)
terraform plan
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
The root cause might be related to the terraform version instead of the Snowflake provider (see links).
It would be useful to know, whether there is a specific terraform version requirement when using the Snowflake provider.
Terraform CLI and Provider Versions
Terraform CLI: 1.0.9
Snowflake-Labs/snowflake Version: upgrading from 0.47.0 -> 0.80.0
Terraform Configuration
Expected Behavior
As we did not change anything on our resources during the upgrade to version 0.80.0, we expected a Terraform plan (& Terraform apply) without any change.
Actual Behavior
Error Log form DevOps Pipeline:
Error: Provider produced invalid plan
│
│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an
│ invalid value for
│ module.account_usage.snowflake_task. task_xyz.error_integration:
│ planned value cty.StringVal("") for a non-computed attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
╷
│ Error: Provider produced invalid plan
│
│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an
│ invalid value for
│ module.account_usage.snowflake_task. task_xyz.allow_overlapping_execution:
│ planned value cty.False for a non-computed attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
╷
│ Error: Provider produced invalid plan
│
│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an
│ invalid value for
│ module.account_usage.snowflake_task.task_xyz.after:
│ planned value cty.ListValEmpty(cty.String) for a non-computed attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
│ Error: Provider produced invalid plan
│
│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an
│ invalid value for
│ module.account_usage.snowflake_task.task_xyz.warehouse:
│ planned value cty.StringVal("") for a non-computed attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
╷
│ Error: Provider produced invalid plan
│
│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an
│ invalid value for
│ module.account_usage.snowflake_task.task_xyz.when:
│ planned value cty.StringVal("") for a non-computed attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
╷
│ Error: Provider produced invalid plan
│
│ Provider "registry.terraform.io/snowflake-labs/snowflake" planned an
│ invalid value for
│ module.account_usage.snowflake_task.task_xyz.session_parameters:
│ planned valu_e cty.MapValEmpty(cty.String) for a non-computed attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
=> Hence, for all configuration parameters which we did not use in our resource befor the upgrade, we got an error.
We tried to work around this by including non-conflicting, missing attributes into the resource configuration like this:
As expected, we only are left with the above error for parameter “warehouse” and “after” which we can not resolve like this due to being conflicting with other parameters.
According to the resource code and documentation those parameters should all be optional and we should not get any error when upgrading the provider only.
Steps to Reproduce
terraform init
(using constraint on provider version 0.47.0)terraform plan
terraform apply
terraform init -upgrade
(without constraint on provider version => upgrade to version 0.80.0)terraform plan
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
The root cause might be related to the terraform version instead of the Snowflake provider (see links).
It would be useful to know, whether there is a specific terraform version requirement when using the Snowflake provider.
https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/issues/1394
https://discuss.hashicorp.com/t/plan-failures-with-terraform-1-5-0-and-framework-1-2-0/54961
https://github.com/hashicorp/terraform/releases/tag/v1.5.1
The text was updated successfully, but these errors were encountered: