Description
AWS::DynamoDB::Table identifies a table to include in the asset inventory.
Potential impact
An untracked table can accumulate costs or fall outside backup and access reviews.
Remediation
Record the owner and data purpose. Check permissions, backups, point-in-time recovery and the encryption key.
Examples
Both examples encrypt the table. Omitting SSEEnabled uses an AWS owned key. Setting it to true here selects an AWS managed key, which can incur KMS charges.
Before
yaml
AWSTemplateFormatVersion: '2010-09-09'
Resources:
DynamoDBOnDemandTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: test
AttributeDefinitions:
- AttributeName: pk
AttributeType: S
KeySchema:
- AttributeName: pk
KeyType: HASH
BillingMode: PAY_PER_REQUEST
After
yaml
AWSTemplateFormatVersion: '2010-09-09'
Resources:
DynamoDBOnDemandTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: test
AttributeDefinitions:
- AttributeName: pk
AttributeType: S
KeySchema:
- AttributeName: pk
KeyType: HASH
BillingMode: PAY_PER_REQUEST
SSESpecification:
SSEEnabled: true