initial serverless fullstack setup

This commit is contained in:
2020-10-29 19:05:45 -05:00
commit 6275da68cd
45 changed files with 2377 additions and 0 deletions

30
database/serverless.yml Normal file
View File

@@ -0,0 +1,30 @@
component: aws-dynamodb
name: database
inputs:
name: ${name}-${stage}
region: us-east-1
# Don't delete the Database Table if "serverless remove" is run
deletionPolicy: retain
# Simple, single-table design
attributeDefinitions:
- AttributeName: hk
AttributeType: S
- AttributeName: sk
AttributeType: S
- AttributeName: sk2
AttributeType: S
keySchema:
- AttributeName: hk
KeyType: HASH
- AttributeName: sk
KeyType: RANGE
globalSecondaryIndexes:
- IndexName: gsi1
KeySchema:
- AttributeName: sk2
KeyType: HASH
- AttributeName: sk
KeyType: RANGE
Projection:
ProjectionType: ALL