Skip to content

Instantly share code, notes, and snippets.

@DavidWells
Created February 12, 2020 05:25
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 DavidWells/e2f0cc7b4fbc649eb83b6cb455fc42b6 to your computer and use it in GitHub Desktop.
Save DavidWells/e2f0cc7b4fbc649eb83b6cb455fc42b6 to your computer and use it in GitHub Desktop.
Tags:
- Key: Name
Value: ${self:custom.analysis-tablename}
- Key: Environment
Value: ${self:custom.stage}
- Key: Project
Value: ${self:custom.app}
- Key: Application
Value: ${self:custom.service_acronym}
Resources:
AnalysisMetadataTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: ${self:custom.analysis-tablename}
AttributeDefinitions:
- AttributeName: analysisRequestId
AttributeType: S
- AttributeName: requestorId
AttributeType: S
KeySchema:
- AttributeName: analysisRequestId
KeyType: HASH
StreamSpecification:
StreamViewType: NEW_IMAGE
ProvisionedThroughput:
ReadCapacityUnits: 10
WriteCapacityUnits: 10
GlobalSecondaryIndexes:
- IndexName: requestorId-gsi
KeySchema:
- AttributeName: requestorId
KeyType: HASH
Projection:
ProjectionType: ALL
ProvisionedThroughput:
ReadCapacityUnits: 5
WriteCapacityUnits: 5
Tags:
- Key: Name
Value: ${self:custom.analysis-tablename}
- Key: Environment
Value: ${self:custom.stage}
- Key: Project
Value: ${self:custom.app}
- Key: Application
Value: ${self:custom.service_acronym}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment