Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Add rudderstack role #1409

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .dbt.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@ SNOWFLAKE_TRANSFORM_SCHEMA=scratch
SNOWFLAKE_TRANSFORM_ROLE=<your snowflake role>
SNOWFLAKE_WAREHOUSE=<a warehouse available from the transform role>
SNOWFLAKE_SCHEMA=<default schema to use>
SNOWFLAKE_ROLE=<the same as SNOWFLAKE_TRANSFORM_ROLE>
SNOWFLAKE_ROLE=<the same as SNOWFLAKE_TRANSFORM_ROLE>

PERMISSION_BOT_USER=<username for permissions>
PERMISSION_BOT_PASSWORD=<password for permission users>
PERMISSION_BOT_ACCOUNT=<account id i.e. xyz.region>
PERMISSION_BOT_DATABASE=<database to use for updating permissions>
PERMISSION_BOT_ROLE=<role to use>
PERMISSION_BOT_WAREHOUSE=<warehouse to use for updating permissions>
29 changes: 29 additions & 0 deletions load/snowflake/roles.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "1.0"

Check warning on line 1 in load/snowflake/roles.yaml

View workflow job for this annotation

GitHub Actions / Lint YAML file

1:1 [document-start] missing document start "---"

# Databases
databases:
Expand Down Expand Up @@ -104,6 +104,25 @@
write:
- raw.*.*
- analytics.*.*
- rudderstack:
warehouses:
- rudderstack_m
privileges:
databases:
read:
- raw
write:
- raw
schemas:
read:
- raw.*
write:
- raw.*
tables:
read:
- raw.*.*
write:
- raw.*.*

- reporting:
warehouses:
Expand All @@ -123,6 +142,7 @@
read:
- analytics.*.*
- snowflake.account_usage.*

- reporting_all:
warehouses:
- reporting_s
Expand Down Expand Up @@ -210,7 +230,7 @@
- archive.*.*
- dev.*.*

# Object Roles

Check warning on line 233 in load/snowflake/roles.yaml

View workflow job for this annotation

GitHub Actions / Lint YAML file

233:5 [comments-indentation] comment not indented like content

# User Roles

Expand All @@ -228,6 +248,12 @@
member_of:
- stitch

- rudderstack:
can_login: yes
member_of:
- rudderstack
- stitch

- permission_bot:
can_login: yes
member_of:
Expand Down Expand Up @@ -272,3 +298,6 @@

- transform_m:
size: medium

- rudderstack_m:
size: medium