Review the encryption key for a DynamoDB table

Distinguish default DynamoDB encryption from KMS key-management requirements

Description

In Pulumi, serverSideEncryption.enabled selects the type of key for a DynamoDB table. With false, an AWS owned key encrypts the data.

Potential impact

Check whether an AWS owned key meets your key-policy and audit requirements.

Remediation

Set enabled to true to use the AWS managed key. For a customer managed key, also specify kmsKeyArn and verify the key policy and usage permissions.

Examples

The second excerpt selects the AWS managed key without supplying a key ARN. Provide the omitted table key and attribute definitions for deployment.

Before

yaml
name: aws-eks
runtime: yaml
resources:
  example:
    type: aws:dynamodb:Table
    properties:
      serverSideEncryption:
        enabled: false

After

yaml
name: aws-eks
runtime: yaml
resources:
  example:
    type: aws:dynamodb:Table
    properties:
      serverSideEncryption:
        enabled: true

References