Created
October 19, 2020 20:06
-
-
Save nosvalds/e23bd43bc93799edefb4dc827977322d to your computer and use it in GitHub Desktop.
excerpt of serverless configuration for User table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
functions: | |
app: | |
handler: index.handler | |
events: | |
- http: ANY / | |
- http: 'ANY {proxy+}' | |
resources: | |
Resources: | |
UsersDynamoDBTable: | |
Type: 'AWS::DynamoDB::Table' | |
Properties: | |
TableName: users | |
AttributeDefinitions: | |
- AttributeName: email | |
AttributeType: S | |
- AttributeName: id | |
AttributeType: S | |
KeySchema: | |
- AttributeName: email | |
KeyType: HASH | |
ProvisionedThroughput: | |
ReadCapacityUnits: 1 | |
WriteCapacityUnits: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment