-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathserverless.yml
More file actions
20 lines (19 loc) · 825 Bytes
/
serverless.yml
File metadata and controls
20 lines (19 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
component: express
name: api
inputs:
# Express application source code.
src: ./
# Permissions required for the AWS Lambda function to interact with other resources
roleName: ${output:permissions.name}
# Enable this when you want to set a custom domain.
# domain: api.${env:domain}
# Enabling this auto-generates an OpenAPI spec each time this is deployed. Note: this feature is still experimental.
openApi: true
# Environment variables
env:
# AWS DynamoDB Table name. Needed for the code to access it.
db: ${output:database.name}
# AWS DynamoDB Table Index name. Needed for the code to access it.
dbIndex1: ${output:database.indexes.gsi1.name}
# A secret token to sign the JWT tokens with.
tokenSecret: secret_1234 # Change to secret via environment variable: ${env:tokenSecret}