wth*_*ira 9 amazon-s3 amazon-web-services kubernetes kops
我尝试使用创建s3桶
aws s3api create-bucket —bucket kubernetes-aws-wthamira-io
它会犯这个错误
调用CreateBucket操作时发生错误(IllegalLocationConstraintException):未指定的位置约束与此请求发送到的区域特定端点不兼容.
我使用aws configure区域设置并将区域设置为eu-west-1
An error occurred (IllegalLocationConstraintException) when calling
the CreateBucket operation: The unspecified location constraint is
incompatible for the region specific endpoint this request was sent
to.
Run Code Online (Sandbox Code Playgroud)
但是犯同样的错误.我怎么解决这个问题.
我使用osx终端连接aws
Asd*_*dfg 21
试试这个:
aws s3api create-bucket --bucket kubernetes-aws-wthamira-io --create-bucket-configuration LocationConstraint=eu-west-1
Run Code Online (Sandbox Code Playgroud)
外部区域us-east-1需要LocationConstraint指定适当的区域,以便在期望的区域中创建桶.
https://docs.aws.amazon.com/cli/latest/reference/s3api/create-bucket.html
| 归档时间: |
|
| 查看次数: |
4529 次 |
| 最近记录: |