This rule ensures the DynamoDB table auto scaling feature is enabled for optimal performance and scalability.
Rule | DynamoDB table auto scaling should be enabled |
Framework | NIST 800-53 Revision 5 |
Severity | ✔ High |
DynamoDB Table Auto Scaling Rule for NIST 800-53 Revision 5
Rule Description:
To comply with NIST 800-53 Revision 5, DynamoDB table auto scaling should be enabled. DynamoDB Auto Scaling helps manage the capacity of your DynamoDB tables automatically. It automatically adjusts provisioned throughput capacity in response to actual application traffic patterns in order to maintain performance, prevent over-provisioning, and reduce costs.
Troubleshooting Steps:
If the DynamoDB table auto scaling is not enabled, follow the troubleshooting steps below:
Verify IAM Permissions: Ensure that the AWS Identity and Access Management (IAM) user or role used for managing the DynamoDB table has the necessary permissions to enable auto scaling. They should have the
dynamodb:UpdateTable
permission.Check Table Status: Confirm that the table is active and not in the process of being created, deleted, or modified. Auto scaling cannot be enabled during these operations.
Verify AWS Region: Ensure that you are checking and modifying the correct DynamoDB table in the desired AWS region. Auto scaling settings are region-specific.
Necessary Codes:
No specific code is required to enable auto scaling for DynamoDB tables. It can be done through the AWS Management Console or AWS CLI.
Step-by-Step Guide for Enabling DynamoDB Table Auto Scaling:
To enable auto scaling for a DynamoDB table, follow the step-by-step guide below:
AWS Management Console:
AWS CLI:
AWS Management Console:
AWS CLI:
AWS Management Console:
AWS CLI:
Run the following command to enable auto scaling:
aws dynamodb update-table --table-name <table-name> --provisioned-throughput AutoScalingSettings="{MinimumUnits=<min-capacity>,MaximumUnits=<max-capacity>,SeedCapacity=<seed-capacity>,TargetScalingPolicy="<scaling-policy>"}"
Replace
<table-name>
with the name of your DynamoDB table.Set
<min-capacity>
to the minimum provisioned capacity required for auto scaling.Set
<max-capacity>
to the maximum provisioned capacity allowed for auto scaling.Set
<seed-capacity>
to the number of read capacity units (RCUs) or write capacity units (WCUs) that are provisioned initially.Choose a suitable
<scaling-policy>
based on your application requirements.AWS Management Console:
Congrats! You have successfully enabled auto scaling for your DynamoDB table to comply with NIST 800-53 Revision 5. The table will now automatically adjust its capacity based on the actual application traffic, optimizing performance and cost efficiency.