Skip to content

Instantly share code, notes, and snippets.

View iShiBin's full-sized avatar
🎯
Focusing

Bin Shi iShiBin

🎯
Focusing
View GitHub Profile
@iShiBin
iShiBin / aws_s3_ls.sh
Created May 23, 2018 15:35 — forked from multidis/aws_s3_ls.sh
List of files in a specific AWS S3 location in a shell script.
#!/bin/bash
# setup AWS CLI first
# http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html
# configure AWS CLI (e.g. use IAM role for S3 access)
export AWS_DEFAULT_REGION=us-east-1
export AWS_ACCESS_KEY_ID=IDHERE
export AWS_SECRET_ACCESS_KEY=KeyHere