Sunday, April 6, 2014

Install s3tools for AWS

very complete guide in here

pip install awscli

Note that you need to edit ~/.aws/config as follows:

output = JSON
region = eu-west-1
aws_access_key_id = Access-key that you find in the AMI page on S3 dashboard
aws_secret_access_key = I dont remember where the hell you find this in the messy AWS website

This is just a simple example of how you can copy multiple files with a given extension

aws s3 cp ./ s3://mybucket/ --recursive --exclude "*" --include "*.jpg"

No comments:

Post a Comment