Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
dynamoDB in serverless.yml
resources:
Resources:
DynamoDbTable:
Type: "AWS::DynamoDB::Table"
Properties:
AttributeDefinitions:
- AttributeName: "eventId"
AttributeType: "S"
- AttributeName: "googleUserName"
AttributeType: "S"
GlobalSecondaryIndexes:
- IndexName: "googleUserName-index"
KeySchema:
- AttributeName: googleUserName
KeyType: "HASH"
Projection:
ProjectionType: "ALL"
ProvisionedThroughput:
ReadCapacityUnits: 2
WriteCapacityUnits: 2
KeySchema:
- AttributeName: "eventId"
KeyType: "HASH"
ProvisionedThroughput:
ReadCapacityUnits: 5
WriteCapacityUnits: 5
TableName: "prototype"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment