-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yaml
48 lines (40 loc) · 1.1 KB
/
serverless.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
org: template-org # <-- This is the org name in your Serverless account
app: template-serverless # <-- This is the app name in your Serverless account
service: template-service # <-- This is the service name in your Serverless account
# To enable environment variables via dotenv
useDotenv: true
# Add plugins
plugins:
- serverless-offline
# Reduce the size of the deployment package
package:
individually: true
# Docker image configuration
provider:
name: aws
runtime: nodejs16.x
region: us-east-1
stage: prod
profile: lambda-docker
ecr:
images:
appimage:
path: ./
environment:
# Add environment variables here in the format:
TEMPLATE: ${env:TEMPLATE}
functions:
api:
image:
name: appimage
# Your build directory (dist), the file name containing lambda handler (lambda)
# and the handler function name (handler)
command:
- dist/lambda.handler
# The entrypoint script that will be used to run the lambda handler
entryPoint:
- '/lambda-entrypoint.sh'
events:
- http:
method: any
path: /{any+}