Skip to content

Instantly share code, notes, and snippets.

@ipmb
Last active April 25, 2021 22:48
Show Gist options
  • Save ipmb/b2c856c34cf45b7ecbc42cef173356cd to your computer and use it in GitHub Desktop.
Save ipmb/b2c856c34cf45b7ecbc42cef173356cd to your computer and use it in GitHub Desktop.
testing s3 upload credentials from your shell
pip install awscli # if you don't have it installed already
export AWS_ACCESS_KEY_ID=your-access-key # starts with AK
export AWS_SECRET_ACCESS_KEY=your-secret-key
echo "hello world" | aws s3 cp - s3://your-bucket-name/test.txt
aws s3 cp s3://your-bucket-name/test.txt - # this should output "hello world"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment