SYSTEM$GET_CMK_CONFIG_SNOWFLAKE_MANAGED_VOLUME

functionnot supportedIntegrations, network & secrets

docs.snowflake.com ↗

System functions

Returns the cloud-provider configuration you need to authorize Snowflake to use your customer-managed key (CMK) with Tri-Secret Secure for Snowflake storage for Iceberg tables. On AWS, this is a KMS key-policy statement. On Microsoft Azure, this is an Azure CLI command to create a service principal in your tenant.

Syntax

SYSTEM$GET_CMK_CONFIG_SNOWFLAKE_MANAGED_VOLUME()

Returns

For AWS, returns a KMS key-policy statement that grants Snowflake the permissions it needs to use your CMK. The Principal.AWS value in the returned statement is specific to your Snowflake account. For example: Important Call the function to get the ARN for your account. Don’t copy the principal ARN from the preceding example. For Microsoft Azure, returns an Azure CLI command that creates a service principal for Snowflake in your Azure tenant. For example: Important Call the function to get the application ID for your account. Don’t copy the application ID from the preceding example. After you run the command, grant the service principal the following permissions on your key: - Microsoft.KeyVault/vaults/keys/read - Microsoft.KeyVault/vaults/keys/wrap/action - Microsoft.KeyVault/vaults/keys/unwrap/action For details, see Activate Tri-Secret Secure for Snowflake storage for Iceberg tables.

Usage notes

Access control requirements

Only account administrators (users with the ACCOUNTADMIN role) can call this function.

See also