Skip to content

Instantly share code, notes, and snippets.

@jhoblitt
Created March 16, 2017 21:01
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 jhoblitt/270f763b613c674f5cd53dde302c8ae6 to your computer and use it in GitHub Desktop.
Save jhoblitt/270f763b613c674f5cd53dde302c8ae6 to your computer and use it in GitHub Desktop.
awscli s3 example
virtualenv venv
. venv/bin/activate
pip install awscli
export AWS_ACCESS_KEY_ID=<...>
export AWS_SECRET_ACCESS_KEY=<...>
export AWS_DEFAULT_REGION=us-east-1
aws s3 ls
aws s3 mb s3://n8pease-123
aws s3 ls s3://n8pease-123
touch foo
aws s3 cp foo s3://n8pease-123/baz/bar/foo
aws s3 ls --recursive s3://n8pease-123
aws s3 rm s3://n8pease-123/baz/bar/foo
aws s3 rb s3://n8pease-123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment