Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snowflake_tags (Data Source) #1372

Closed
tsanton opened this issue Nov 14, 2022 · 2 comments
Closed

snowflake_tags (Data Source) #1372

tsanton opened this issue Nov 14, 2022 · 2 comments
Assignees
Labels
category:data_source feature-request Used to mark issues with provider's missing functionalities

Comments

@tsanton
Copy link

tsanton commented Nov 14, 2022

Hi!

I believe it would be useful with a snowflake_tags data source.
The usecase I'm facing is that we're declaring and managing tags in one project, but we'd like to reuse them for tag associations in another project.

Thinking it might look something like this .tf-side

data "snowflake_tags" "this" {
  database = "MY_DB"
  schema   = "TAG_SCHEMA"
}

.. and I guess a decent output will be the result of show tags in schema my_db.tag_schema:

database = MY_DB
schema = TAG_SCHEMA
tags = {
	tag_name_1: {
	        name  = tag_name_1
	        owner = someowner1
	        comment = foo
	        allowed_values = [""]
	},
	tag_name_2: {
                name  = tag_name_2
	        owner = someowner2
	        comment = bar
	        allowed_values = ["baz"]
	}
}
@tsanton tsanton added the feature-request Used to mark issues with provider's missing functionalities label Nov 14, 2022
sfc-gh-jmichalak added a commit that referenced this issue Nov 22, 2024
<!-- Feel free to delete comments as you fill this in -->
- add `tags` data source
- add missing examples for `streams` data source
<!-- summary of changes -->

## Test Plan
<!-- detail ways in which this PR has been tested or needs to be tested
-->
* [x] acceptance tests
<!-- add more below if you think they are relevant -->
* [ ] …

## References
<!-- issues documentation links, etc  -->
https://docs.snowflake.com/en/sql-reference/sql/show-tags

#1372
@sfc-gh-jmichalak
Copy link
Collaborator

Hi @tsanton 👋

We've just released v0.99.0 (release, migration guide) in which we introduced tags data source. Please upgrade to this version and let us know if you have any issues.

@sfc-gh-jmichalak
Copy link
Collaborator

Closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:data_source feature-request Used to mark issues with provider's missing functionalities
Projects
None yet
Development

No branches or pull requests

3 participants