Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Enable DynamoDB Table Auto Scaling Rule

This rule ensures the DynamoDB table auto scaling feature is enabled for optimal performance and scalability.

RuleDynamoDB table auto scaling should be enabled
FrameworkNIST 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:

  1. 1.

    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.

  2. 2.

    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.

  3. 3.

    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:

  1. 1.

    AWS Management Console:

    • Log in to the AWS Management Console.
    • Navigate to the DynamoDB service.
    • Select the desired region.
    • Click on the specific table you want to enable auto scaling for.
  2. 2.

    AWS CLI:

    • Install and configure the AWS CLI if you haven't already done so.
  3. 3.

    AWS Management Console:

    • In the Table details view, click on the "Capacity" tab.
    • Scroll down to the "Auto Scaling" section and click on the "Manage capacity" button.
  4. 4.

    AWS CLI:

    • Open your preferred terminal or command prompt.
  5. 5.

    AWS Management Console:

    • In the "Manage capacity" window, select the "Auto scaling" tab.
  6. 6.

    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.

  7. 7.

    AWS Management Console:

    • Adjust the settings for minimum and maximum capacity, as well as the target scaling policy according to your desired configurations.
    • Save the changes.

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.

Is your System Free of Underlying Vulnerabilities?
Find Out Now