aws s3api create-bucket —bucket make exception

前端 未结 5 833
暖寄归人
暖寄归人 2021-02-12 22:13

I am trying to create an S3 bucket using

aws s3api create-bucket —bucket kubernetes-aws-wthamira-io

It gives this error:



        
5条回答
  •  抹茶落季
    2021-02-12 22:45

    try this:

    aws s3api create-bucket --bucket kubernetes-aws-wthamira-io --create-bucket-configuration LocationConstraint=eu-west-1
    

    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

提交回复
热议问题