aws s3api create-bucket-桶使异常 [英] aws s3api create-bucket —bucket make exception
本文介绍了aws s3api create-bucket-桶使异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用
aws s3api create-bucket —bucket kubernetes-aws-wthamira-io
出现此错误:
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.
我将aws configure
设置为eu-west-1
Default region name [eu-west-1]:
,但它给出了相同的错误.我该如何解决?
but it gives the same error. How do I solve this?
我使用osx终端连接AWS
I use osx terminal to connect aws
推荐答案
尝试一下:
aws s3api create-bucket --bucket kubernetes-aws-wthamira-io --create-bucket-configuration LocationConstraint=eu-west-1
us-east-1
以外的区域需要指定适当的LocationConstraint
,以便在所需区域中创建存储桶.
Regions outside of us-east-1
require the appropriate LocationConstraint
to be specified in order to create the bucket in the desired region.
https://docs.aws.amazon. com/cli/latest/reference/s3api/create-bucket.html
这篇关于aws s3api create-bucket-桶使异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文