Last active
September 21, 2022 14:26
-
-
Save em-shea/6bb329131999eb7a40e6b6c27d84e6ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: 'AWS::Serverless-2016-10-31' | |
Description: An example deployment for migrating data between DynamoDB tables | |
Resources: | |
ExistingTable: | |
Type: AWS::DynamoDB::Table | |
DeletionPolicy: Retain | |
Properties: | |
TableName: ExportDataTable | |
AttributeDefinitions: | |
- AttributeName: SubscriberEmail | |
AttributeType: S | |
KeySchema: | |
- AttributeName: SubscriberEmail | |
KeyType: HASH | |
BillingMode: PAY_PER_REQUEST | |
ProvisionedThroughput: | |
ReadCapacityUnits: 0 | |
WriteCapacityUnits: 0 | |
NewTable: | |
Type: AWS::DynamoDB::Table | |
DeletionPolicy: Retain | |
Properties: | |
TableName: ImportDataTable | |
AttributeDefinitions: | |
- AttributeName: PK | |
AttributeType: S | |
- AttributeName: SK | |
AttributeType: S | |
- AttributeName: GSI1PK | |
AttributeType: S | |
- AttributeName: GSI1SK | |
AttributeType: S | |
KeySchema: | |
- AttributeName: PK | |
KeyType: HASH | |
- AttributeName: SK | |
KeyType: RANGE | |
GlobalSecondaryIndexes: | |
- IndexName: GSI1 | |
KeySchema: | |
- AttributeName: GSI1PK | |
KeyType: HASH | |
- AttributeName: GSI1SK | |
KeyType: RANGE | |
Projection: | |
ProjectionType: ALL | |
BillingMode: PAY_PER_REQUEST | |
ProvisionedThroughput: | |
ReadCapacityUnits: 0 | |
WriteCapacityUnits: 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment