Comments (8)
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.
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.
My use case is just about the same as above. Really need this.
from terraform-provider-snowflake.
@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.
@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.
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.
@sjauld what's the use-case out of curiosity?
from terraform-provider-snowflake.
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)
- Possible wrong string escape method. HOT 1
- Deprecation error message after provider upgrade from 0.66.2 to 0.85.0 HOT 2
- Add support for compute pools, image repositories, and services HOT 4
- Warning: Show with OnAll option is skipped. HOT 1
- Why error handling in user.go was reverted (@sfc-gh-pbosak) HOT 1
- Add support for network rules HOT 6
- data_retention_time_in_days = 0 must be defined in snowflake_database from share HOT 3
- error on dynamic table refresh during HOT 4
- Support for Snowflake Budgets HOT 1
- snowflake_table "data_rentention_days" and "data_retention_time_in_days" chaos HOT 2
- Terraform Snowflake Error: Plugin did not respond HOT 5
- [prerelease] panic with index out of range [1] when reading existing function HOT 1
- Issue with snowflake_unsafe_execute HOT 2
- Issue with privileges, all_privileges in snowflake_grant_privileges_to_database_role resource HOT 3
- Issue with "cluster_by" in snowflake_table when written to state file HOT 1
- test
- test 2
- Issue with "snowflake_notification_integration" direction param HOT 5
- Add use secondary roles parameter snowflake provider HOT 1
- snowflake_stage import doesn't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-snowflake.