Skip to main content

Tag

Configuration can be provided to the Snowflake Object Lifecycle Engine for the following operation with Tag:

  • Manage the Lifecycle of new and existing Tags
  • Manage Grants of Tags

Using this configuration defines the tag as a Snowflake object for further use. It does not apply the tag to an object.

Supported Parameters

The engine supports the parameters listed below.

  • COMMENT: Specifies a comment for the tag.
    • Configuration key: comment
    • Data Type: String
  • ALLOWED_VALUES: List of allowed values for the tag.
    • Configuration key: allowed_values
    • Data Type: List of String
  • GRANTS: List of Privileges and Roles to which privileges are granted to on the current tag.
    • Configuration key: grants
    • Data Type: Map

Basic syntax

databases:
<database-name>:
schemas:
<schema-name>:
tags:
<tag-name>:
<configuration-key>: <value>

Supported Tag Grants to Roles

Following is the list of Privileges Grant to Roles that can be specified in the tag definition:

  • APPLY

Examples

databases:
PRODUCTS_RECORD:
schemas:
PRODUCTS:
tags:
PRODUCT:
comment: "PRODUCT Tag"
allowed_values: ["Red", "Yellow", "Blue"]
grants:
APPLY:
- READER
- WRITER
- ADMIN