Ensure compliance by enabling DynamoDB table auto scaling for efficient resource management.
Rule | DynamoDB table auto scaling should be enabled |
Framework | NIST 800-171 Revision 2 |
Severity | ✔ High |
DynamoDB Auto Scaling for NIST 800-171 Revision 2
Description
To comply with the NIST 800-171 Revision 2 requirement, auto scaling should be enabled for DynamoDB tables. Auto scaling ensures that the read and write capacity of the DynamoDB tables is automatically adjusted based on the workload, providing optimal performance while minimizing costs.
Auto scaling allows DynamoDB to dynamically adjust provisioned read and write throughput based on actual application traffic. This eliminates the need for manual capacity adjustments and ensures that your DynamoDB tables can handle varying levels of traffic without experiencing performance degradation or incurring unnecessary costs.
Troubleshooting Steps
Necessary Codes
No specific codes are required to enable auto scaling for DynamoDB tables. Auto scaling can be configured through the AWS Management Console, AWS CLI, or AWS SDKs.
Step-by-Step Guide for Remediation
AWS Management Console
AWS CLI
aws application-autoscaling put-scaling-policy --service-namespace dynamodb --resource-id table/<table-name> --scalable-dimension dynamodb:table:ReadCapacityUnits --policy-name <policy-name> --policy-type TargetTrackingScaling --target-tracking-scaling-policy-configuration file://<policy-configuration-file>
Replace
<table-name>
with the actual name of your DynamoDB table and specify a unique <policy-name>
. Create a JSON policy configuration file with the desired target tracking scaling configuration and provide its path with file://<policy-configuration-file>
.aws application-autoscaling put-scaling-policy --service-namespace dynamodb --resource-id table/<table-name> --scalable-dimension dynamodb:table:WriteCapacityUnits --policy-name <policy-name> --policy-type TargetTrackingScaling --target-tracking-scaling-policy-configuration file://<policy-configuration-file>
Again, replace
<table-name>
with the actual name of your DynamoDB table and provide a unique <policy-name>
. Use the same JSON policy configuration file as specified above.AWS SDKs
By following these steps, you will successfully enable auto scaling for your DynamoDB tables, meeting the NIST 800-171 Revision 2 requirements.