---
title: "Ensure DynamoDB tables are encrypted"
canonical: "https://kb.cynergy.app/space/MD/991855235/Ensure%20DynamoDB%20tables%20are%20encrypted"
format: markdown
---
Cynergy Policy ID: CYN_AWS_GENERAL_52  
Severity: LOW

# Unencrypted DynamoDB tables

# Description

Encrypting your Amazon DynamoDB helps protect your data from unauthorized access or tampering. That way, you can ensure that only authorized users can access and modify the contents of your DBs. Such action can help protect against external threats such as hackers or malware, as well as internal threats such as accidental or unauthorized access.

# Fix - Build time

## Terraform

- **Resource:** aws_dynamodb_table
- **Argument:** server_side_encryption

Go

```go
resource "aws_dynamodb_table" "basic-dynamodb-table" {
  ...
  server_side_encryption {
+    enabled = true
+    kms_key_arn= aws_kms_key.dynamo.arn
  }
}

```