Description
DynamoDB always encrypts table data at rest. Omitting SSEEnabled or setting it to false selects an AWS owned key.
Potential impact
The selected key may fall short of audit requirements. Losing access to a required KMS key can interrupt table access or backup recovery.
Remediation
If the default key meets your policy, no extra setting is needed. For the AWS managed key, set SSEEnabled: true in SSESpecification. To manage the key’s policy and lifecycle yourself, also set KMSMasterKeyId to an approved customer managed key. Verify the key and test reads and writes. Keep keys needed for backups, and manage table and network access separately.
Examples
AWS owned key
Resources:
MyDynamoDBTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: my-table
AttributeDefinitions:
- AttributeName: id
AttributeType: N
KeySchema:
- AttributeName: id
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 5
WriteCapacityUnits: 5
SSESpecification:
SSEEnabled: false
AWS managed key
Resources:
MyDynamoDBTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: my-table
AttributeDefinitions:
- AttributeName: id
AttributeType: N
KeySchema:
- AttributeName: id
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 5
WriteCapacityUnits: 5
SSESpecification:
SSEEnabled: true
With true and no key ID, the second table uses DynamoDB’s AWS managed key and incurs KMS charges. Supply a table name appropriate for your deployment.