Fivetran

Since SnowDDL v0.27, it is possible to natively configure database, user and permissions for Fivetran.

How to configure Fivetran with SnowDDL?

1) Create custom permission model

Configuration guide for PERMISSION MODEL

fivetran:
  ruleset: DATABASE_OWNER

  owner_create_grants:
    - STAGE
    - TABLE
    - VIEW

  owner_future_grants:
    STAGE: [OWNERSHIP]
    TABLE: [OWNERSHIP]
    VIEW: [OWNERSHIP]

  read_future_grants:
    STAGE: [READ]
    TABLE: [SELECT, REFERENCES]
    VIEW: [SELECT, REFERENCES]

2) Create database

Configuration guide for DATABASE

3) Create business role

Configuration guide for BUSINESS ROLE

4) Create user

How to grant access to objects created by Fivetran?

You may grant read access on all objects inside Fivetran database by using database_read parameter for BUSINESS ROLE.

For example:

If you want to provide granular on per-schema basis, it requires a bit more work.

  1. Explicitly configure schema(s) in Fivetran database by creating corresponding sub-directories with params.yaml files inside.

  2. Use parameter schema_read for BUSINESS ROLE.

For example:

SnowDDL can only create "schema roles" for schemas which are explicitly defined in config.

Last updated