S3 Prefix Regex

0

I'm planning to use s3 bucket with dynamic prefix name using cognito user id like this :

s3://erlogbookapp80030-dev/private/ap-southeast-1:6e615292-a755-4e40-8fa1-7125743abc17/

under the prefix I have 2 folder

  1. Labels
  2. Submissions

I'm trying to configure S3 Event to only trigger Lambda every time a file stored in the Submissions. I don't want file uploaded to Labels triggers the Lambda.

My understanding S3 event prefix doesn't support the regex / wildcard.

Want to confirm that & also looking for the alternative solution to implement such requirement?

AWS
전문가
Tedy_T
질문됨 4년 전2885회 조회
1개 답변
0
수락된 답변

If you can control the process of appending a pseudo/unconventional extension to the file before being stored in /Submission then you can raise a trigger on that particular suffix instead of the prefix. Your Lambda can rename the file (omit the pseudo extension) and execute the rest of the function logic.

This is a simple alternative until wildcard support for prefixes materializes

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠