Last active
October 24, 2020 02:21
-
-
Save agalea91/4bc35afa7cc5818f0b194f5e8a55ba4e to your computer and use it in GitHub Desktop.
Redshift unload to s3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unload (' | |
select * from my_table_name | |
where <date_range_where_clause> | |
') | |
to 's3://my-bucket/my_table_name/' | |
credentials 'aws_access_key_id=<key_id>;aws_secret_access_key=<secret_key>' | |
delimiter '\t' | |
allowoverwrite | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment