Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Enable DynamoDB Table Auto Scaling Rule

Ensure compliance by enabling DynamoDB table auto scaling for efficient resource management.

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

  1. 1.
    Verify that your DynamoDB table is not already using on-demand capacity mode or manual provisioned capacity.
  2. 2.
    Ensure that you have sufficient IAM permissions to enable auto scaling for DynamoDB tables.
  3. 3.
    Confirm that the AWS region you are working in supports DynamoDB auto scaling.
  4. 4.
    Check if you have any custom scaling policies or alarms set up that conflict with auto scaling.

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

  1. 1.
    Open the AWS Management Console and navigate to the DynamoDB service.
  2. 2.
    Select the desired DynamoDB table.
  3. 3.
    In the navigation pane, choose the "Capacity" tab.
  4. 4.
    Under "Auto Scaling", choose "Manage Auto Scaling".
  5. 5.
    Click on "Add auto scaling".
  6. 6.
    Configure the auto scaling policies for read and write capacity based on your application's needs.
  7. 7.
    Save the auto scaling configuration.

AWS CLI

  1. 1.
    Install and configure the AWS CLI on your machine.
  2. 2.
    Open a terminal or command prompt.
  3. 3.
    Run the following command to configure auto scaling for read capacity:
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>
.

  1. 1.
    Run the following command to configure auto scaling for write capacity:
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

  1. 1.
    Use the AWS SDK for your preferred programming language to configure auto scaling for DynamoDB tables programmatically.
  2. 2.
    Refer to the documentation of the AWS SDK you are using for specific instructions and code examples on how to enable auto scaling for DynamoDB tables.

By following these steps, you will successfully enable auto scaling for your DynamoDB tables, meeting the NIST 800-171 Revision 2 requirements.

Is your System Free of Underlying Vulnerabilities?
Find Out Now