Trigger S3 create event

后端 未结 3 1591
半阙折子戏
半阙折子戏 2021-02-12 17:45

I use S3 Create events to trigger AWS-Lambdas. If my processing fails I want to do some magic and then trigger the \"event\" again to start my processing ones more. So far the o

3条回答
  •  时光取名叫无心
    2021-02-12 18:20

    One method that is not mention here is that you can "touch" the metadata of the S3 object and it will trigger an event. This way you can get the event message without having to modify or fiddle with the original object data.

    Note: the data in the metadata fields do not have to change to trigger the event.

    Some strategies here:

    • Use a common metadata tag which can be used for triggering event
    • Get the metadata dictionary first then post it back with the same data

提交回复
热议问题