Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
Add multiple suffix in Amazon Lambda

When configuring trigger from Amazon S3 to Amazon Lambda, how can we add multiple suffix? Currently it seems Lambda only supports a single suffix.

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

You can combine filters using a logical AND, however a filter can have at most one prefix and zero or more tags.

Did you try creating two configurations pointing to the same cloud function as so:

  <CloudFunctionConfiguration>
     <Id>1</Id>
     <Filter>
            <S3Key>
                <FilterRule>
                    <Name>suffix</Name>
                    <Value>.jpg</Value>
                </FilterRule>
            </S3Key>
     </Filter>
     <CloudFunction>arn:aws:lambda:us-west-2:444455556666:cloud-function-A</CloudFunction>
     <Event>s3:ObjectCreated:Put</Event>
  </CloudFunctionConfiguration>
  <CloudFunctionConfiguration>
     <Id>2</Id>
     <Filter>
            <S3Key>
                <FilterRule>
                    <Name>suffix</Name>
                    <Value>.png</Value>
                </FilterRule>
            </S3Key>
     </Filter>
     <CloudFunction>arn:aws:lambda:us-west-2:444455556666:cloud-function-A</CloudFunction>
     <Event>s3:ObjectCreated:Put</Event>
  </CloudFunctionConfiguration>
about 4 years ago · Santiago Trujillo Report

0

It doesn't seem to be possible inside a single trigger (̶w̶h̶a̶t̶ ̶a̶ ̶p̶i̶t̶y̶)̶, but still it isn't that expensive to create multiple S3 triggers for Your lambda function each with it's own suffix, most likely one of a couple of file extensions Your lamda must react to, right?

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!