Coder Social home page Coder Social logo

Comments (8)

iserko avatar iserko commented on July 27, 2024 11

I've got a use-case.
We Terraform the following resources:

  • AWS S3 bucket
  • AWS Firehose Delivery stream to the S3 bucket
  • Snowflake Stage for the prefix in the S3 bucket
  • Snowflake Pipe that COPY's from the stage into the table

Right now I have to manually create the table before I can Terraform anything, but would be neater to have the provider be able to do it.

from terraform-provider-snowflake.

nelg avatar nelg commented on July 27, 2024 2

I've got a use-case.
We Terraform the following resources:

* AWS S3 bucket

* AWS Firehose Delivery stream to the S3 bucket

* Snowflake Stage for the prefix in the S3 bucket

* Snowflake Pipe that COPY's from the stage into the table

Right now I have to manually create the table before I can Terraform anything, but would be neater to have the provider be able to do it.

Same problem here

from terraform-provider-snowflake.

elliottohara avatar elliottohara commented on July 27, 2024 2

My use case is just about the same as above. Really need this.

from terraform-provider-snowflake.

doctoryes avatar doctoryes commented on July 27, 2024

@djzempsnowflake We've left TABLE (and VIEW) objects unmanaged so far in edX's Snowflake implementation, as they're relatively dynamic and changing. We manage DATABASE and SCHEMA using Terraform, along with USER, ROLE, permissions-granting, etc.

from terraform-provider-snowflake.

davehowell avatar davehowell commented on July 27, 2024

@djzempsnowflake
The snowflake_table_grant resource has recently had an on_future property added so you can use it to grant on all future tables in a schema. That's enough to manage permissions.

My tables are created by various other processes, ELT tools, transformation tools like DBT and by analyst users. I have basic Roles that those tools use to make permissions straight forward.

Not possible to pre-define all the tables. There are a few I know up-front, e.g. some metadata tables that ETL tools use, but then I think creating those is the responsibility of those tools, so I don't see any use for a table resource.

from terraform-provider-snowflake.

sjauld avatar sjauld commented on July 27, 2024

I tend to agree that managing tables in terraform is not a great idea for most use cases.

However it would still be good for the provider to support tables. I think the goal of any terraform provider should be to fully wrap the underlying API (or in this case, wrap the API wrapped in a SQL driver).

So, on balance, +1 for this issue. I'll probably need it in about 12 months so if someone builds it before then that will make future me happy.

from terraform-provider-snowflake.

davehowell avatar davehowell commented on July 27, 2024

@sjauld what's the use-case out of curiosity?

from terraform-provider-snowflake.

khoatrandata avatar khoatrandata commented on July 27, 2024

I haven't seen mentioned in the docs whether the table will be dropped when schema change or not?

from terraform-provider-snowflake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.