saurav shekhar
saurav shekhar

Reputation: 606

Downloading multiple files from S3 using 'aws cli' in python

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

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 269091

The contents of your .aws/config file should look like:

[default]
region = us-east-1
output = table

Upvotes: 1

Related Questions