-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Tag association v1 readiness (#3210)
<!-- Feel free to delete comments as you fill this in --> - rework `tag_association` resource - return `nil` from GetTag instead of failing - add more tests regarding tag/masking policy: assert that `ALTER MASKING POLICY SET TAG` differs from `ALTER TAG SET MASKING POLICY` - support tagging account for identifiers with org name - support `IF EXISTS` for unsetting tags - add notes about manually unassigning policies from objects, add a todo with an issue number - fix a wrong issue number in essential objects list <!-- 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/user-guide/object-tagging https://docs.snowflake.com/en/sql-reference/functions/system_get_tag #3145 #1910 #2943 #3235 ## TODO - use generated config and asserts, remove old test `tf` files ## Ideas - extract a separate resource for tagging accounts?
- Loading branch information
1 parent
1863bf6
commit 04f6d54
Showing
60 changed files
with
1,953 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# format is dbName.schemaName.tagName or dbName.schemaName.tagName | ||
terraform import snowflake_tag_association.example 'dbName.schemaName.tagName' | ||
terraform import snowflake_tag_association.example '"TAG_DATABASE"."TAG_SCHEMA"."TAG_NAME"|TAG_VALUE|OBJECT_TYPE' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.