Is it possible to set the prefix to a dynamic value when uploading the file of s3 and igniting lambda?

Asked 1 years ago, Updated 1 years ago, 446 views

With s3 attached to lambda, set s3 prefix to test/{dynamic-id}/photo-id/ from the configuration trigger and
I uploaded the file with the test/1/photo-id of the s3 bucket, but the lambda function is not currently ignited.
If you upload a file with the trigger setting prefix set to test/ and test/1/photo-id, it fires.
However, with this, lambda will also be ignited in test/2/photo-id.
Please give me any advice.

aws amazon-s3 aws-lambda

2022-10-28 10:16

1 Answers

The questions are not organized and difficult to read, but in short,

  • Patterns you want to ignite
    • test/1/photo-id
    • test/2/photo-id
  • Patterns you do not want to ignite
    • test/3/sample/ (I don't know why it ends with /.Wrong question?)
  • test/1/photo-id
  • test/2/photo-id
  • test/3/sample/ (I don't know why it ends with /.Wrong question?)

Is that so?

If so,

  • Prefixtest/
  • subfix/photo-id

I think it's just setting it up as .


2022-10-28 10:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.