最近我按照aws官方网站的文档在Linux机器上安装了aws cli。第一次,我能够毫无问题地运行 s3 命令。作为开发的一部分,我卸载了 aws-cli 并重新安装了它。我收到错误 botocore.utils.BadIMDSRequestError: <botocore.awsrequest.AWSRequest object at 0x7f3f6cb44d00>
当我执行 aws s3 ls 时
Raj*_*war 34
我想到了。我只需要添加区域
aws configure
AWS Access Key ID [******************RW]:
AWS Secret Access Key [******************7/]:
Default region name [None]: **us-east-1**
Run Code Online (Sandbox Code Playgroud)
然后就可以了!
谢谢。