This small utility allows to upload and download files to/from bucket
If a profile can be used (ie ~/.aws/config
), expoert the profile to be used.
export AWS_PROFILE=my-profile
The authentication can be passed as EnvVars as following
export AWS_ACCESS_KEY_ID=XXX
export AWS_SECRET_ACCESS_KEY=XXX
export AWS_REGION=us-east-1
s3-utility upload [bucket_name] [local_file]
s3-utility download [bucket_name] [local_file]
It will fail if local_file
already exists locally
go get github.com/romachalm/s3-utility