diff --git a/dynamodb/dynamodb.yaml b/dynamodb/dynamodb.yaml index ee7104d..17aaebb 100644 --- a/dynamodb/dynamodb.yaml +++ b/dynamodb/dynamodb.yaml @@ -1,79 +1,66 @@ -AWSTemplateFormatVersion: "2010-09-09" -Resources: - myDynamoDBTable: +AWSTemplateFormatVersion: '2010-09-09' +Resources: + myDynamoDBTable: Type: AWS::DynamoDB::Table - Properties: - AttributeDefinitions: - - - AttributeName: "Album" - AttributeType: "S" - - - AttributeName: "Artist" - AttributeType: "S" - - - AttributeName: "Sales" - AttributeType: "N" - - - AttributeName: "NumberOfSongs" - AttributeType: "N" - KeySchema: - - - AttributeName: "Album" - KeyType: "HASH" - - - AttributeName: "Artist" - KeyType: "RANGE" - ProvisionedThroughput: - ReadCapacityUnits: "5" - WriteCapacityUnits: "5" - TableName: "myTableName" - GlobalSecondaryIndexes: - - - IndexName: "myGSI" - KeySchema: - - - AttributeName: "Sales" - KeyType: "HASH" - - - AttributeName: "Artist" - KeyType: "RANGE" - Projection: - NonKeyAttributes: - - "Album" - - "NumberOfSongs" - ProjectionType: "INCLUDE" - ProvisionedThroughput: - ReadCapacityUnits: "5" - WriteCapacityUnits: "5" - - - IndexName: "myGSI2" - KeySchema: - - - AttributeName: "NumberOfSongs" - KeyType: "HASH" - - - AttributeName: "Sales" - KeyType: "RANGE" - Projection: - NonKeyAttributes: - - "Album" - - "Artist" - ProjectionType: "INCLUDE" - ProvisionedThroughput: - ReadCapacityUnits: "5" - WriteCapacityUnits: "5" - LocalSecondaryIndexes: - - - IndexName: "myLSI" - KeySchema: - - - AttributeName: "Album" - KeyType: "HASH" - - - AttributeName: "Sales" - KeyType: "RANGE" - Projection: - NonKeyAttributes: - - "Artist" - - "NumberOfSongs" - ProjectionType: "INCLUDE" + Properties: + AttributeDefinitions: + - AttributeName: Album + AttributeType: S + - AttributeName: Artist + AttributeType: S + - AttributeName: Sales + AttributeType: N + - AttributeName: NumberOfSongs + AttributeType: N + KeySchema: + - AttributeName: Album + KeyType: HASH + - AttributeName: Artist + KeyType: RANGE + ProvisionedThroughput: + ReadCapacityUnits: '5' + WriteCapacityUnits: '5' + TableName: myTableName + GlobalSecondaryIndexes: + - IndexName: myGSI + KeySchema: + - AttributeName: Sales + KeyType: HASH + - AttributeName: Artist + KeyType: RANGE + Projection: + NonKeyAttributes: + - Album + - NumberOfSongs + ProjectionType: INCLUDE + ProvisionedThroughput: + ReadCapacityUnits: '5' + WriteCapacityUnits: '5' + - IndexName: myGSI2 + KeySchema: + - AttributeName: NumberOfSongs + KeyType: HASH + - AttributeName: Sales + KeyType: RANGE + Projection: + NonKeyAttributes: + - Album + - Artist + ProjectionType: INCLUDE + ProvisionedThroughput: + ReadCapacityUnits: '5' + WriteCapacityUnits: '5' + LocalSecondaryIndexes: + - IndexName: myLSI + KeySchema: + - AttributeName: Album + KeyType: HASH + - AttributeName: Sales + KeyType: RANGE + Projection: + NonKeyAttributes: + - Artist + - NumberOfSongs + ProjectionType: INCLUDE + PointInTimeRecoverySpecification: + PointInTimeRecoveryEnabled: true