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

Support for object cloning

Open radhe-kishan opened this issue 2 years ago • 2 comments

Terraform CLI and Provider Versions

Terraform v1.6.1 Snowflake 0.75.0

Use Cases or Problem Statement

We are building our pipelines with Coalesce app, it has a nice separation of developer workspace and integration(testing, production) environment. We are thinking to provide developer with a dedicated schema to work on a particular feature. This will avoid unintentional changes to testing or production environment and give a lot of flexibility to the developer.

Proposal

Can we get support for cloning schema in snowflake_schema resource? Cloning a schema is expensive task(at least time wise) and there will be many cases where we wouldn't want to clone everything. If we can even get a clone feature for schema objects that should also help to a great extent.

How much impact is this issue causing?

Medium

Additional Information

In the absence of this feature developer will either be using the integration/prod environment or they have to manually pull the required objects in their schema.

radhe-kishan avatar Nov 24 '23 12:11 radhe-kishan

Hey @radhe-kishan 👋

We won't support object cloning for any object for V1. Currently, you can either use https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/unsafe_execute or clone manually and import with terraform.

sfc-gh-jmichalak avatar Jul 15 '24 13:07 sfc-gh-jmichalak

V1 approach for cloning: https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/v1-preparations/CHANGES_BEFORE_V1.md#object-cloning.

sfc-gh-asawicki avatar Sep 05 '24 11:09 sfc-gh-asawicki