S3バケット作成時のエラー

S3バケット作成時のエラー:

東京リージョンでs3バケット作成を試みたら下記エラー。

$ aws s3api create-bucket --bucket test-bucket --region ap-northeast-1 
An error occurred (IllegalLocationConstraintException) when calling the CreateBucket operation: The a-northeast-1 location constraint is incompatible for the region specific endpoint this request was sent to. 
awscliのhelpにもあるが--create-bucket-configuration LocationConstraintの指定が必要。

input

$ aws s3api create-bucket --bucket test-bucket --region ap-northeast-1 --create-bucket-configuration LocationConstraint=ap-northeast-1 
output

{ 
    "Location": "http://test-bucket.s3.amazonaws.com/" 
} 

コメント

このブログの人気の投稿

投稿時間:2020-07-01 05:34:30 RSSフィード2020-07-01 05:00 分まとめ(37件)

投稿時間:2020-07-01 20:43:40 RSSフィード2020-07-01 20:00 分まとめ(81件)

投稿時間:2020-07-01 08:33:22 RSSフィード2020-07-01 08:00 分まとめ(49件)