Skip to content

Instantly share code, notes, and snippets.

@mlevkovsky
Created July 3, 2019 22:06
Show Gist options
  • Save mlevkovsky/f152f8a9beffaadb2f9b949fb561fa71 to your computer and use it in GitHub Desktop.
Save mlevkovsky/f152f8a9beffaadb2f9b949fb561fa71 to your computer and use it in GitHub Desktop.
serveless yaml file part 2
service: jb-recommendation
custom:
stage: ${opt:stage, 'dev'}
configuration: ${file(configurations/${self:custom.stage}.yml)}
provider:
name: aws
runtime: nodejs8.10
stage: ${self:custom.stage}
region: ${self:custom.configuration.region}
profile: ${self:custom.configuration.profile}
memorySize: 1024
timeout: 900
environment:
NODE_ENV: ${self:custom.configuration.NODE_ENV}
functions:
processS3:
handler: app.s3Handler
reservedConcurrency: 1
events:
- s3:
bucket: ssense-recommendation-framework-${self:custom.configuration.NODE_ENV}
events: s3:ObjectCreated:*
rules:
- suffix: .csv
plugins:
- serverless-plugin-typescript
- serverless-offline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment