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.
aws s3 ls? Does it work when trying to copy one file (without --recursive)?C:\Users\USERNAME\.aws\config. It should showregion=us-east-1under[default]. See: Configuring the AWS CLI - AWS Command Line InterfaceC:\Users\USERNAME\.aws\configaws configure. It will format the file correctly.