forked from AnomalyInnovations/serverless-nodejs-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
36 lines (33 loc) · 1.02 KB
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# NOTE: update this with your service name
service: yellowcard-serverless-starter
description: Yellow Card Serverless Starter API
# serverless-webpack configuration
# Enable auto-packing of external modules
custom:
stage: ${opt:stage, self:provider.stage}
webpack:
webpackConfig: ./config/webpack.config.js
includeModules: true
provider:
name: aws
runtime: nodejs8.10
stage: dev
region: us-east-1
# Loads environmental variables from SSM provided environment variables if stage specified. Otherwise use local environmental variable.
# Do not commit your env.yml
environment: ${file(env.yml), file(serverless.env.yml):${self:custom.stage}}
apiKeys:
# Deploy keys as you need. Specify a unique name and stage for keys.
- starter-${self:custom.stage}
functions:
hello:
handler: src/API.hello
events:
- http:
path: hello
method: get
# Use the serverless-webpack plugin to transpile ES6
plugins:
- serverless-webpack
- serverless-offline
- serverless-domain-manager