Reputation: 606
I am trying to download multiple files from S3
using aws cli
in python
. Using pip install
I installed aws cli
and was able to successfully pass credentials. But when I try to download multiple files, I get following error:
fatal error: invalid literal for int() with base 10: 'us-east-1.amazonaws.com'
My code to download the file looks like this:
aws s3 cp "s3://buckets/testtelligence/saurav_shekhar/test/" "C:/HD/Profile data/Downloads" --recursive
Also, my C:\Users\USERNAME\.aws\config
is
[default]
region = Default region name [None]:us-east-1
output = Default output format [None]: table
I am not sure what that error means and how to resolve this.
Upvotes: 0
Views: 2056
Reputation: 269091
The contents of your .aws/config
file should look like:
[default]
region = us-east-1
output = table
Upvotes: 1