Created
March 6, 2020 19:41
-
-
Save vincentclaes/5f7e2a7f03a5826a76552ea30475ca48 to your computer and use it in GitHub Desktop.
example of how to configure a lambda with a s3 event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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