1
0

More than 1 year has passed since last update.

【AWS】Lambda関数のトリガーを同じS3にした時にハマった話

Posted at

タイトルの通りです。
エラー解消のため、調査したので備忘録となります。

結論

  • AWS Step Functionsを使う

経緯

  • Lambda関数のトリガーでS3バケットをしていたところ、以下のエラーが表示。
Configuration is ambiguously defined.
Cannot have overlapping suffixes in two rules
if the prefixes are overlapping for the same event type. 

Google翻訳の結果

構成の定義があいまいです。
プレフィックスが同じイベントタイプで重複している場合、
2つのルールでサフィックスを重複させることはできません。

つまり、同じ条件のS3トリガーを作成することができない。
この場合、AWS StepFunctionsを使うこととなる。

対処法

色々調査した結果、以下の投稿者様の記事が参考になったのでご紹介。

考え方

設定方法

S3トリガー設定の後処理

上記の記事を書いていただいた皆様、ありがとうございます。
助かりました。

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