Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Enable DynamoDB Table Auto Scaling Rule

This rule ensures that DynamoDB table auto scaling is enabled for efficient performance and resource management.

RuleDynamoDB table auto scaling should be enabled
FrameworkFedRAMP Low Revision 4
Severity
High

Rule Description:

The DynamoDB table auto scaling should be enabled to comply with the FedRAMP Low Revision 4 policy. Auto scaling allows you to automatically adjust the capacity of your DynamoDB tables based on the workload, ensuring optimal performance and cost efficiency.

Troubleshooting Steps:

If auto scaling is not enabled for the DynamoDB table, you may experience performance issues during high traffic periods or incur unnecessary costs due to over-provisioning. To troubleshoot this issue, follow the steps below:

  1. 1.

    Verify Auto Scaling Status:

    • Open the AWS Management Console and navigate to the DynamoDB service.
    • Select the desired table and go to the "Capacity" tab.
    • Check if the Auto Scaling feature is already enabled for the table.
  2. 2.

    Check Table Provisioned Capacity:

    • If the auto scaling feature is disabled, review the table's provisioned capacity settings.
    • Ensure that the read and write capacity units are properly configured to meet your workload demands.
  3. 3.

    Review CloudWatch Alarms:

    • Auto scaling relies on CloudWatch alarms to trigger scaling actions.
    • Confirm that the necessary alarms are configured for the table, specifically focusing on metrics such as consumed read and write capacity units.
  4. 4.

    Review Auto Scaling Policies:

    • Check if there are any existing auto scaling policies associated with the DynamoDB table.
    • Ensure that the policies are correctly configured to scale the capacity up or down based on predefined thresholds.
  5. 5.

    Test Load Simulation:

    • If the above steps do not reveal any issues, consider running a load simulation test against the table to see if the capacity scales automatically as expected.
    • Monitor the CloudWatch metrics during the load test to validate the auto scaling behavior.

Necessary Codes:

There are no specific codes required to enable DynamoDB table auto scaling, as it is a configuration setting in the AWS Management Console. However, if you prefer to use the AWS CLI or SDKs to enable auto scaling, you can use the following command:

aws application-autoscaling register-scalable-target \
  --service-namespace dynamodb \
  --resource-id table/<Your-Table-Name> \
  --scalable-dimension dynamodb:table:ReadCapacityUnits \
  --min-capacity <Min-Capacity> \
  --max-capacity <Max-Capacity> \
  --role-arn <Your-Role-ARN>

Replace

<Your-Table-Name>
with the actual name of your DynamoDB table,
<Min-Capacity>
with the minimum desired capacity,
<Max-Capacity>
with the maximum desired capacity, and
<Your-Role-ARN>
with the ARN (Amazon Resource Name) of the role.

Step-by-Step Guide for Remediation:

To enable auto scaling for a DynamoDB table in compliance with FedRAMP Low Revision 4, follow the step-by-step guide below:

  1. 1.

    Log in to the AWS Management Console.

  2. 2.

    Navigate to the DynamoDB service.

  3. 3.

    Select the desired DynamoDB table.

  4. 4.

    Click on the "Capacity" tab.

  5. 5.

    Locate the "Auto Scaling" section and click on "Edit".

  6. 6.

    Enable auto scaling by toggling the switch to "On".

  7. 7.

    Set the desired minimum and maximum capacity units for both read and write capacity.

  8. 8.

    Define the target utilization for auto scaling.

  9. 9.

    Configure the scaling policy by selecting the appropriate scaling type (target tracking or step scaling) and defining the thresholds.

  10. 10.

    Click on "Save".

  11. 11.

    Monitor the table's performance and adjust the auto scaling settings if necessary.

  12. 12.

    Test the auto scaling behavior under different workload scenarios to ensure it functions as expected.

By following these steps, you should be able to successfully enable auto scaling for your DynamoDB table, meeting the requirements of the FedRAMP Low Revision 4 policy.

Is your System Free of Underlying Vulnerabilities?
Find Out Now