Skip to content

Instantly share code, notes, and snippets.

@iconara
Last active September 7, 2017 14:57
Show Gist options
  • Save iconara/62410f5b7ba59d7205b7293530e4c1fc to your computer and use it in GitHub Desktop.
Save iconara/62410f5b7ba59d7205b7293530e4c1fc to your computer and use it in GitHub Desktop.
Redshift Spectrum cheat sheet
-- this creates a schema called "name_of_schema_in_redshift" in Redshift,
-- that works as an alias for the Athena/Glue database "name_of_database_in_glue".
CREATE EXTERNAL SCHEMA name_of_schema_in_redshift
FROM DATA CATALOG
DATABASE 'name_of_database_in_glue'
REGION 'us-east-1'
IAM_ROLE 'arn:aws:iam::456064453472:role/xyz';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment