Skip to content

Instantly share code, notes, and snippets.

@lakshmantgld
Created October 21, 2016 00:59
Show Gist options
  • Save lakshmantgld/aa33b78e1f97981332ed38cb84e55221 to your computer and use it in GitHub Desktop.
Save lakshmantgld/aa33b78e1f97981332ed38cb84e55221 to your computer and use it in GitHub Desktop.
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