Skip to content

Instantly share code, notes, and snippets.

@mkurian
Created May 17, 2019 23:11
Show Gist options
  • Save mkurian/8da6b4e8a835ddf23b0ed165bd45c794 to your computer and use it in GitHub Desktop.
Save mkurian/8da6b4e8a835ddf23b0ed165bd45c794 to your computer and use it in GitHub Desktop.
{
"TableName": "Invoice",
"AttributeDefinitions": [
{
"AttributeName": "business_id",
"AttributeType": "N"
},
{
"AttributeName": "customer_id",
"AttributeType": "S"
},
{
"AttributeName": "invoice_id",
"AttributeType": "S"
},
{
"AttributeName": "created",
"AttributeType": "N"
},
{
"AttributeName": "range_key",
"AttributeType": "S"
}
],
"GlobalSecondaryIndexUpdates": [
{
"Create": {
"IndexName": "invoice-created-index",
"Projection": {
"ProjectionType": "ALL"
},
"ProvisionedThroughput": {
"WriteCapacityUnits": 5,
"ReadCapacityUnits": 5
},
"KeySchema": [
{
"KeyType": "HASH",
"AttributeName": "business_id"
},
{
"KeyType": "RANGE",
"AttributeName": "customer_invoice_range_key"
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment