Share
Configuration can be provided to Snowflake Object Lifecycle Engine for the following operation with Shares:
- Manage Lifecycle of new and existing Share
- Manage Lifecycle of cloned Share
- Manage Grants of Share
Supported Parameters#
The engine supports the parameters listed below.
- COMMENT: Specifies a comment for the share.
- Configuration Key: comment
- Data Type: String
- NAMESPACING: Specify whether Prefix or Suffix or both are to be added to Share Name[Doesn't apply to Default Database].
- Configuration key:
namespacing - Data Type: String
- Possible Values:
noneprefixsuffixboth(Default)
- Configuration key:
- ENVIRONMENT: Specify the environment in which the Share is managed. Regex can be provided as well.
- Configuration key:
environment - Data Type: String
- Configuration key:
- MANAGE_MODE: Configures what properties to manage for the Share.
- Configuration key:
manage_mode - Data Type: String
- Possible Values:
nonegrantsall(Default)
- Configuration key:
- ACCOUNTS: A list of accounts to be added to the share
- Configuration key:
accounts - Data Type: List of String
- Configuration key:
Basic syntax#
shares: <share-name>: <configuration-key>: <value> accounts: - <account-name>Examples#
Share creation#
shares: DEV_SHARE: comment: "share for Ingestion Developers"Share with grants to accounts#
shares: MODELLING_SHARE: comment: "share for Ingestion Developers" accounts: - <account-name> - <account-name>