Skip to content

Instantly share code, notes, and snippets.

@chilampoon
Last active June 1, 2021 17:15
Show Gist options
  • Save chilampoon/4008198d2bf943fd42e14ac573bb2dc4 to your computer and use it in GitHub Desktop.
Save chilampoon/4008198d2bf943fd42e14ac573bb2dc4 to your computer and use it in GitHub Desktop.
Download AWS s3 bucket objects

Download AWS s3 bucket objects

  • Install AWS CLI
pip3 install awscli --upgrade --user
# export PATH=~/.local/bin:$PATH (add into ~/.bashrc)
# source ~/.bashrc
  • Configure the CLI
aws configure

Then input the access key, secret access key, region time (us-east-1) and output format (json).

  • Download s3 objects, e.g.
aws s3 cp s3://xxxxxxx-us-east-1/files/file1.gz ./file1.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment