Aws S3 Ls Gives Error Botocore. Utils. Badimdsrequesterror:
Recently I Installed Aws Cli on a Linux Machine Following the Documentation from Aws Official Website. in the First Go, I Was Able to Run the S3 Commands...
Recently I installed aws cli on a linux machine following the documentation from aws official website. In the first go, I was able to run the s3 commands without any issue. As part of my development, I uninstalled aws-cli and re-installed it. I was getting the error botocore.utils.BadIMDSRequestError: <botocore.awsrequest.AWSRequest object at 0x7f3f6cb44d00>
when I execute aws s3 ls
1 Answer
I figured it out. I just need to add the region
aws configure
AWS Access Key ID [******************RW]:
AWS Secret Access Key [******************7/]:
Default region name [None]: **us-east-1**
Then it works!
Thanks.