Last active
July 12, 2024 18:40
-
-
Save FernandoCutire/d936de2f111801c91917129221e4d40f to your computer and use it in GitHub Desktop.
Unload the data from a redshift table to an s3 path
This file contains hidden or 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 your_redshift_table') | |
TO 's3://your-bucket/path/to/export/' | |
IAM_ROLE 'arn:aws:iam::your-account-id:role/your-redshift-role' | |
FORMAT AS PARQUET; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment