Skip to content

Instantly share code, notes, and snippets.

@digitalbase
Created April 28, 2020 15:54
Show Gist options
  • Save digitalbase/7b2c1a3504a934be57f6c816fd472b12 to your computer and use it in GitHub Desktop.
Save digitalbase/7b2c1a3504a934be57f6c816fd472b12 to your computer and use it in GitHub Desktop.
resources:
Resources:
SegmentIdentifiesDynamoDBTable:
Type: 'AWS::DynamoDB::Table'
Properties:
StreamSpecification:
StreamViewType: NEW_IMAGE
AttributeDefinitions:
- AttributeName: messageId
AttributeType: S
KeySchema:
- AttributeName: messageId
KeyType: HASH
BillingMode: PAY_PER_REQUEST
TableName: ${self:custom.tableIdentify}
SegmentPageDynamoDBTable:
Type: 'AWS::DynamoDB::Table'
Properties:
StreamSpecification:
StreamViewType: NEW_IMAGE
AttributeDefinitions:
- AttributeName: messageId
AttributeType: S
KeySchema:
- AttributeName: messageId
KeyType: HASH
BillingMode: PAY_PER_REQUEST
TableName: ${self:custom.tablePage}
SegmentAttributionDynamoDBTable:
Type: 'AWS::DynamoDB::Table'
Properties:
AttributeDefinitions:
- AttributeName: anonymousId
AttributeType: S
- AttributeName: eventId
AttributeType: S
KeySchema:
- AttributeName: anonymousId
KeyType: HASH
- AttributeName: eventId
KeyType: RANGE
BillingMode: PAY_PER_REQUEST
TableName: ${self:custom.tableAttribution}
SegmentUserMappingDynamoDBTable:
Type: 'AWS::DynamoDB::Table'
Properties:
AttributeDefinitions:
- AttributeName: userId
AttributeType: S
- AttributeName: anonymousId
AttributeType: S
KeySchema:
- AttributeName: userId
KeyType: HASH
- AttributeName: anonymousId
KeyType: RANGE
BillingMode: PAY_PER_REQUEST
TableName: ${self:custom.tableUserMapping}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment