0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWS香港リージョンをつかってEC2からS3にファイルを送信時にエラーが発生して解消した話

Last updated at Posted at 2020-10-08

タイトルの通りです。

#実行コマンド

aws s3 cp /home/ubuntu/gomi.txt s3://bucket-name/gomi.txt

#エラー

The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to

#修正内容
sourceとtargetを明示する必要があるようです。

aws s3 cp /home/ubuntu/gomi.txt s3://bucket-name/gomi.txt --region ap-east-1 --source-region ap-east-1

#参考資料
https://github.com/aws/aws-cli/issues/4174

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?