Step 9. Deploy the data model
Objective
-
Deploy the DynamoDB table (or tables) to the AWS Region.
Process
-
DevOps architect creates an AWS CloudFormation template or other infrastructure as code (IaC) tool for the DynamoDB table (or tables). AWS CloudFormation provides an automated way to provision and configure your tables and associated resources.
Tools and resources
RACI
Business user | Business analyst | Solutions architect | Database engineer | Application developer | DevOps engineer |
---|---|---|---|---|---|
I |
I |
C |
C |
R/A |
Outputs
-
AWS CloudFormation template
Example
mySecondDDBTable: Type: AWS::DynamoDB:: Table DependsOn: "myFirstDDBTable" Properties: AttributeDefinitions: - AttributeName: "ArtistId" AttributeType: "S" - AttributeName: "Concert" AttributeType: "S" - AttributeName: "TicketSales" AttributeType: "S" KeySchema: - AttributeName: "ArtistId" KeyType: "HASH" - AttributeName: "Concert" KeyType: "RANGE" ProvisionedThroughput: ReadCapacityUnits: Ref: "ReadCapacityUnits" WriteCapacityUnits: Ref: "WriteCapacityUnits" GlobalSecondaryIndexes: - IndexName: "myGSI" KeySchema: - AttributeName: "TicketSales" KeyType: "HASH" Projection: ProjectionType: "KEYS_ONLY" ProvisionedThroughput: ReadCapacityUnits: Ref: "ReadCapacityUnits" WriteCapacityUnits: Ref: "WriteCapacityUnits" Tags: - Key: mykey Value: myvalue