How to do it...

Follow these steps in order to create a DynamoDB table, and then observe the drift after you have used the console to make a manual configuration change to the table:

  1. Paste the following code into a file on your filesystem. Give it a .yaml extension:
AWSTemplateFormatVersion: "2010-09-09"Resources:   SimpleDynamoDBTable:     Type: AWS::DynamoDB::Table    Properties:       AttributeDefinitions:         -           AttributeName: "Id"          AttributeType: "S"      KeySchema:         -           AttributeName: "Id"          KeyType: "HASH"      BillingMode: PAY_PER_REQUESTOutputs:  TableName:    Description: Drift Detection Example Table    Value: !Ref SimpleDynamoDBTable
  1. Go to the CloudFormation console, and click Create stack.
  2. Select Upload a template to Amazon S3, and choose the file that you just ...

Get AWS SysOps Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.