Skip to content

Instantly share code, notes, and snippets.

@notionquest
Last active November 16, 2017 13:58
Show Gist options
  • Save notionquest/7a11b42a98573b1d2d28dca411ad69fc to your computer and use it in GitHub Desktop.
Save notionquest/7a11b42a98573b1d2d28dca411ad69fc to your computer and use it in GitHub Desktop.
Creating DynamoDB using Cloudformation
Resources:
ItemsTable:
Type: "AWS::DynamoDB::Table"
Properties:
TableName: "InvoiceConfig"
AttributeDefinitions:
- AttributeName: "providerName"
AttributeType: "S"
KeySchema:
- AttributeName: "providerName"
KeyType: "HASH"
ProvisionedThroughput:
ReadCapacityUnits: 2
WriteCapacityUnits: 2
DifferentTermsPages:
Type: "AWS::DynamoDB::Table"
Properties:
TableName: "DifferentTermsPages"
AttributeDefinitions:
- AttributeName: "id"
AttributeType: "S"
KeySchema:
- AttributeName: "id"
KeyType: "HASH"
ProvisionedThroughput:
ReadCapacityUnits: 10
WriteCapacityUnits: 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment