Skip to content

Instantly share code, notes, and snippets.

@nosvalds
Created October 19, 2020 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nosvalds/e23bd43bc93799edefb4dc827977322d to your computer and use it in GitHub Desktop.
Save nosvalds/e23bd43bc93799edefb4dc827977322d to your computer and use it in GitHub Desktop.
excerpt of serverless configuration for User table
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