diff --git a/README.md b/README.md index 22046f589c4..f0cfe700c2a 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,51 @@ It runs a script generated by [godownloader](https://github.com/goreleaser/godow You can also just download a binary from our [releases](https://github.com/Snowflake-Labs/terraform-provider-snowflake/releases) and follow the [Terraform directions for installing 3rd party plugins](https://www.terraform.io/docs/configuration/providers.html#third-party-plugins). +### Upgrading from CZI Provider +As of (5/25/2022) to provider has been transferred from CZI to Snowflake-Labs. To upgrade from CZI, please run the following command: + +```shell +terraform state replace-provider chanzuckerberg/snowflake Snowflake-Labs/snowflake +``` + +You should also update your lock file / Terraform provider version pinning. From the deprecated source: + +```hcl +# deprecated source +terraform { + required_version = ">= 1.1.7" + + required_providers { + snowflake = { + source = "chanzuckerberg/snowflake" + version = "0.32.0" + } + } +} +``` + +To new source: + +```hcl +# new source +terraform { + required_version = ">= 1.1.7" + + required_providers { + snowflake = { + source = "Snowflake-Labs/snowflake" + version = "0.32.0" + } + } +} +``` +If you are not pinning your provider versions, you may find it useful to forcefully upgrade providers using the command: +``` +terraform init -upgrade +``` + +>**Note**: 0.34 is the first version published after the transfer. When the provider was transferred over not all releases were transferred for some reason. Only versions 0.28 and newer were transferred. + ### For Terraform v0.13+ users > We are now (7/29/2021) using Terraform 0.13 for testing purposes due to an issue for data sources for versions <0.13. Related PR for this change [here](https://github.com/Snowflake-Labs/terraform-provider-snowflake/pull/622#issuecomment-888879621).