blog.robotex.de

Amazon S3 Commandline

Set credentials:

aws configure

Show bucket files:

aws s3 ls s3://<bucket_name>

Get bucket region:

aws s3api get-bucket-location --bucket <bucket_name>

Upload folder to bucket:

aws s3 cp <local_folder> s3://<bucket_name> --recursive

Same with region:

aws s3 cp <local_folder> s3://<bucket_name> --recursive --region <region>

Hint: Frankfurt is eu-central-1


Back