aws s3 sync \
/home/tom/ \
s3://mybucket/ \
--exclude "*.DS_Store"
aws s3 cp \
/home/tom/ \
s3://mybucket/ \
--recursive \
Specify non-default AWS account using --profile different_account_name
.
Create new access keys in AWS console. Note that you can only have two sets of keys at a time.
Navigate to the IAM console by clicking your user name in the dropdown menu in the banner at the top of the page. Then select the "Security Credentials" option. If a popup appears, select "Continue to Security Credentials".
In IAM console, click "Access Keys," "Create Access Keys," then "Download Credentials."
While in your virtual environment (workon YourVirtualEnvironmentName
), install awscli
.
pip install awscli
Run aws configure
. Enter the codes given in the credentials.csv
download file, your region (us-west-2
or similar) and output (json or whichever you prefer). Key info is then stored in ~/.aws
.
To test that everything is configured correctly, run this.
aws s3 ls s3://elections.thelensnola.org