LoginSignup
2
2

More than 5 years have passed since last update.

AWS Lambda: Publish S3 event notifications で登録ができなかったときの対応

Posted at

AWS lambda でS3へのデータpushをトリガーにうごくサンプルを作ったときにはまったので、かいておきます。

エラーメッセージ

We were unable to configure your function to the S3 bucket. This could be due to a propagation delay of your new IAM role, a misconfigured invocation role, or a mismatch between the function region and the bucket region.

対応方法

  • バケットとlambdaの地域を同じしようねという単純なエラーではありますが。。。
  • S3に送っているs3_regionを対応している国に変更
  • 今使えるのは、アメリカとヨーロッパの一部のみなので、気をつける。
  • 既につくられたバケットに関しては、regionを変更しても変わらないように見えるので、思い切ってbucket名をかえておいたほうがよさそう。
fluent.conf
  # s3_region ap-northeast-1
  s3_region us-east-1

関連

同じようなイシューをawsフォーラムでもやりとりされていた模様。

2
2
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
2
2