LoginSignup
0
1

More than 5 years have passed since last update.

aws-cliコマンドでの接続エラー

Last updated at Posted at 2014-05-27

バックアップ自働化してて http://aws.amazon.com/jp/cli/ をはじめて使ってたんだけどなんかアップロードする時にエラー出てた。

$ aws s3 cp a.txt s3://mybucket/

upload failed: a.txt to s3://mybucket/a.txt A client error (PermanentRedirect) occurred when calling the PutObject operation: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.

こういうの。 --debug つけるともっと詳細吐く。

どうも aws configure の時にリージョン設定してないと不正なエンドポイントに接続しにいってこれが起きているっぽい。

再度 aws configure を打って http://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/using-regions-availability-zones.html を参考に ap-northeast-1 を入れた。

aws --region "ap-northeast-1" でもその場で変えられるっぽい。

0
1
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
1