Created
October 21, 2016 00:59
-
-
Save lakshmantgld/aa33b78e1f97981332ed38cb84e55221 to your computer and use it in GitHub Desktop.
dynamoDB in serverless.yml
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
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