This rule ensures that DynamoDB tables have encryption enabled.
Rule | DynamoDB table should have encryption enabled |
Framework | HIPAA |
Severity | ✔ Low |
DynamoDB Table encryption for HIPAA Compliance
Rule Description
To ensure compliance with the Health Insurance Portability and Accountability Act (HIPAA), encryption should be enabled for all data stored in the DynamoDB table. Encryption provides an additional layer of security to protect sensitive data and prevent unauthorized access or disclosure.
Troubleshooting Steps
If encryption is not enabled for the DynamoDB table, follow these troubleshooting steps to enable it:
Necessary Codes
If encryption is not enabled for the DynamoDB table, use the following code to enable encryption:
import boto3 dynamodb_client = boto3.client('dynamodb') response = dynamodb_client.update_table( TableName='your_table_name', SSESpecification={ 'Enabled': True, 'SSEType': 'KMS', 'KMSMasterKeyId': 'your_kms_key_id' } )
Replace
'your_table_name'
with the actual name of your DynamoDB table and 'your_kms_key_id'
with the ID of the KMS key you want to use for encryption.Step-by-Step Guide for Remediation
Follow the step-by-step guide below to enable encryption for the DynamoDB table:
Alternatively, you can use the AWS CLI to enable encryption:
'your_table_name'
with the actual name of your DynamoDB table and 'your_kms_key_id'
with the ID of the KMS key you want to use for encryption:aws dynamodb update-table \ --table-name your_table_name \ --sse-specification Enabled=true,SSEType=KMS,KMSMasterKeyId=your_kms_key_id
aws dynamodb describe-table --table-name your_table_name --query "Table.SSEDescription.Status"
The output should indicate that the encryption status is "ENABLED".
By following these steps, you can enable encryption for the DynamoDB table to ensure HIPAA compliance and protect sensitive data.