SHARE (outbound)
Config path: /outbound_share.yaml
Example:
Schema
{key} (ident) - share name
{value} (dict)
accounts (list)
{items} (ident) - identifiers of consumer accounts:
<organization>.<account>
.
grants (str)
{key} (str) -
<object_type>:<privilege>
{value} (list)
{items} (ident) - full objects names or name patterns to grant privilege;
share_restrictions (bool) - should be set to
false
in order to create SHARE from Business Critical account to accounts with lower edition;comment (str)
Usage notes
Outbound shares are processed only if at least one share exists in config.
All changes to outbound shares are "unsafe" and should be reviewed carefully, since it may expose data from your account to 3rd parties.
Outbound shares require additional privileges for SnowDDL administration user:
IMPORT SHARE
,CREATE SHARE
.Parameter share_restrictions require additional privilege:
OVERRIDE SHARE RESTRICTIONS
.If share has more than 3 consumer accounts, it will be "altered" on every run on SnowDDL. It is caused by limitations of
SHOW SHARES
command, which can only return 3 accounts in columnto
. Currently there is no way to get full list of currently assigned consumer accounts.All limitations related to
GRANT ... TO SHARE
command applies to grants. Please read it carefully.It is possible to use Unix-style wildcard patterns for grant object names.
Links
Last updated