Full stack serverless template

This commit is contained in:
2021-09-22 09:23:42 -05:00
parent 3a410213b9
commit ae37645212
45 changed files with 2373 additions and 16 deletions

18
api/serverless.yml Normal file
View File

@@ -0,0 +1,18 @@
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}
# 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}