Skip to content

Instantly share code, notes, and snippets.

@yai333
Created June 27, 2021 04:22
Show Gist options
  • Select an option

  • Save yai333/89e8d5c8d9b9f07622cd70f0ee0dbb0d to your computer and use it in GitHub Desktop.

Select an option

Save yai333/89e8d5c8d9b9f07622cd70f0ee0dbb0d to your computer and use it in GitHub Desktop.
UserTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: ${self:custom.userTable}
SSESpecification:
SSEEnabled: true
AttributeDefinitions:
- AttributeName: address
AttributeType: S
KeySchema:
- AttributeName: address
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: ${self:custom.tableThroughputs.${self:provider.stage}}
WriteCapacityUnits: ${self:custom.tableThroughputs.${self:provider.stage}}
StreamSpecification:
StreamViewType: NEW_AND_OLD_IMAGES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment