Skip to content

Instantly share code, notes, and snippets.

@humbledshuttler
Last active June 10, 2024 12:24
Show Gist options
  • Select an option

  • Save humbledshuttler/61d6951c1a8d1c4e42aa71c393eb7fe2 to your computer and use it in GitHub Desktop.

Select an option

Save humbledshuttler/61d6951c1a8d1c4e42aa71c393eb7fe2 to your computer and use it in GitHub Desktop.
Type: AWS::DynamoDB::Table
Properties:
TableName: Notifications
AttributeDefinitions:
- AttributeName: AccountID
AttributeType: B
- AttributeName: NotificationID
AttributeType: B
KeySchema:
- AttributeName: AccountID
KeyType: HASH
- AttributeName: NotificationID
KeyType: RANGE
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
GlobalSecondaryIndexes:
- IndexName: NotificationIDIndex
KeySchema:
- AttributeName: NotificationID
KeyType: HASH
Projection:
ProjectionType: ALL
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: "Cloudformation template describing the infrastructure.\n"
Resources:
NotificationsTable:
Fn::Transform:
Name: AWS::Include
Parameters:
Location: s3://s3-000000000000/20775de185abfbacfa74759a4d82eee2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment