Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created September 8, 2021 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/7825ef993e95a060e2593b3a9d1b26f0 to your computer and use it in GitHub Desktop.
Save velotiotech/7825ef993e95a060e2593b3a9d1b26f0 to your computer and use it in GitHub Desktop.
functions:
lambda:
handler: index.handler
memorySize: 512
timeout: 60
layers:
- {Ref: PhotoParserLibsLambdaLayer}
events:
- s3:
bucket: your-temporary-bucket-name
event: s3:ObjectCreated:*
rules:
- suffix: .jpg
existing: true
- s3:
bucket: your-temporary-bucket-name
event: s3:ObjectCreated:*
rules:
- suffix: .jpeg
existing: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment