Import Listing¶
snowform_import_listing imports Snowflake shares from other accounts as databases, and grants IMPORTED PRIVILEGES on them to the roles you list.
Every role gets access to every imported database.
Usage¶
module "shared_databases" {
source = "github.com/inovex/snowform_import_listing.git?ref=0.0.1"
snowflake_shares = [
{
database_name = "CUSTOMER_LEADS_IMPORTED_DB"
share_name = "PROVIDER_ORG.PROVIDER_ACCOUNT.CUSTOMER_LEADS_SHARE"
},
]
account_roles = ["DATA_ENGINEER_ROLE"]
providers = {
snowflake.sysadmin = snowflake.sysadmin
}
}
Inputs and Outputs¶
Name |
Description |
|---|---|
|
List of |
|
Roles that get |
|
The |
|
List of the imported database names. |
|
The grant resources, keyed by |
The module only uses the sysadmin provider, so SYSADMIN owns the imported databases.