AWS Lambda Trigger on specific subfolder

0

I created my first AWS Lambda triggered by on file creation on S3 bucket...

This is my bucket (mgdlab-bucket) tree: test-trigger --- sub-folder-1 --- sub-folder-2

I'd like to configure trigger on sub-folder-1 only but it seems not works

Bucket arn: arn:aws:s3:::mgdlab-bucket Event types: s3:ObjectCreated:* Prefix: test-trigger/sub-folder-1

If I upload a new file info sub-folder-2, my lambda is triggered. why?

Enter image description here

luk3tt0
asked 9 months ago473 views
1 Answer
1
Accepted Answer

Hi,

Does your trigger work if you don't specify any prefix: i..e for the creation of any file in your bucket?

Best

Didier

profile pictureAWS
EXPERT
answered 9 months ago
profile picture
EXPERT
reviewed 3 months ago
profile picture
EXPERT
reviewed 9 months ago
  • Yes. It works without prefix. Probably I need to wait some minutes for changes?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions