Skip to content

Instantly share code, notes, and snippets.

@jbasdf
Created August 23, 2016 22:37
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 jbasdf/2514c49d68338f0d6f3f15a7f97e5b98 to your computer and use it in GitHub Desktop.
Save jbasdf/2514c49d68338f0d6f3f15a7f97e5b98 to your computer and use it in GitHub Desktop.
dynamodb.json - cloud formation partial for creating dynamodb tables
{
"Applications" : {
"Type" : "AWS::DynamoDB::Table",
"Properties" : {
"TableName" : "Applications-${stage}",
"AttributeDefinitions": [ {
"AttributeName" : "name",
"AttributeType" : "S"
} ],
"KeySchema": [
{ "AttributeName": "name", "KeyType": "HASH" }
],
"ProvisionedThroughput" : {
"ReadCapacityUnits" : 5,
"WriteCapacityUnits" : 5
}
}
},
"ApplicationInstances" : {
"Type" : "AWS::DynamoDB::Table",
"Properties" : {
"TableName" : "ApplicationInstances",
"AttributeDefinitions": [ {
"AttributeName" : "lti_key",
"AttributeType" : "S"
} ],
"KeySchema": [
{ "AttributeName": "lti_key", "KeyType": "HASH" }
],
"ProvisionedThroughput" : {
"ReadCapacityUnits" : 5,
"WriteCapacityUnits" : 5
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment