Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active January 3, 2023 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garystafford/3277c7e6789f2bd52802540bdf2de295 to your computer and use it in GitHub Desktop.
Save garystafford/3277c7e6789f2bd52802540bdf2de295 to your computer and use it in GitHub Desktop.
-- switch redshift database connection to new demo database before continuing!
-- create external tables schema and new glue data catalog
create external schema tickit_external
from data catalog
database 'tickit_dbt'
iam_role 'arn:aws:iam::<your_aws_acccount_id>:role/ClusterPermissionsRole'
create external database if not exists;
create schema tickit_dbt;
drop schema public;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment