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 ParametersThe 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:
none
prefix
suffix
both
(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:
none
grants
all
(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 syntaxshares: <share-name>: <configuration-key>: <value> accounts: - <account-name>
#
Examples#
Share creationshares: DEV_SHARE: comment: "share for Ingestion Developers"
#
Share with grants to accountsshares: MODELLING_SHARE: comment: "share for Ingestion Developers" accounts: - <account-name> - <account-name>