Skip to content

Instantly share code, notes, and snippets.

@brysontyrrell
Last active August 31, 2020 20:59
Show Gist options
  • Save brysontyrrell/a24f816360d4a4670b149be82a747d2e to your computer and use it in GitHub Desktop.
Save brysontyrrell/a24f816360d4a4670b149be82a747d2e to your computer and use it in GitHub Desktop.
MyTable:
Type: AWS::DynamoDB::Table
Properties:
BillingMode: PAY_PER_REQUEST
AttributeDefinitions:
- AttributeName: pk
AttributeType: S
- AttributeName: sk
AttributeType: S
- AttributeName: gsi1_pk
AttributeType: S
- AttributeName: gsi1_sk
AttributeType: S
KeySchema:
- AttributeName: pk
KeyType: HASH
- AttributeName: sk
KeyType: RANGE
GlobalSecondaryIndexes:
- IndexName: GSI1
KeySchema:
- AttributeName: gsi1_pk
KeyType: HASH
- AttributeName: gsi1_sk
KeyType: RANGE
Projection:
ProjectionType: ALL
StreamSpecification:
StreamViewType: NEW_AND_OLD_IMAGES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment