Skip to content

Instantly share code, notes, and snippets.

@adrianhall
Created November 26, 2018 23:35
Show Gist options
  • Save adrianhall/b75c021d6f4c6dcb200eba75aa683b22 to your computer and use it in GitHub Desktop.
Save adrianhall/b75c021d6f4c6dcb200eba75aa683b22 to your computer and use it in GitHub Desktop.
DynamoDBTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: ${self:custom.api}
KeySchema:
- AttributeName: id
KeyType: HASH
- AttributeName: typeName
KeyType: RANGE
AttributeDefinitions:
- AttributeName: id
AttributeType: S
- AttributeName: typeName
AttributeType: S
ProvisionedThroughput:
ReadCapacityUnits: ${self:custom.ddb_readIOPS}
WriteCapacityUnits: ${self:custom.ddb_writeIOPS}
StreamSpecification:
StreamViewType: NEW_AND_OLD_IMAGES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment