Skip to content

Instantly share code, notes, and snippets.

@vincentclaes
Created March 6, 2020 19:41
Show Gist options
  • Save vincentclaes/5f7e2a7f03a5826a76552ea30475ca48 to your computer and use it in GitHub Desktop.
Save vincentclaes/5f7e2a7f03a5826a76552ea30475ca48 to your computer and use it in GitHub Desktop.
example of how to configure a lambda with a s3 event
service: my-pipeline
provider:
name: aws
region: eu-central-1
runtime: python3.7
functions:
extract:
handler: lambda_function/extract.handler
events:
- s3:
bucket: some-bucket
event: s3:ObjectCreated:*
rules:
- prefix: raw/
- suffix: .msg
environment:
DEST_BUCKET: some-bucket
DEST_KEY: stg/extract/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment