Enable Auto Scaling for DynamoDB tables
Enable Auto Scaling for DynamoDB tables

To dynamically adjust provisioned throughput capacity for your DynamoDB tables in response to current traffic patterns, you can use the Auto Scaling feature provided by Amazon Dynamodb. This feature uses the Application Auto Scaling service to automatically increase the provisioned read and write capacity to handle sudden traffic increases and reduce the throughput when the workload decreases to avoid paying for unused provisioned capacity. Once the Auto Scaling feature is enabled, Dynamodb monitors the throughput consumption using the CloudWatch service and adjusts provisioned capacity up or down as needed. Auto Scaling can help you to manage your resource capacity efficiently and lower the cost of your Dynamodb workloads.

Remediation Steps

To enable Auto Scaling for your Amazon DynamoDB tables via the AWS Management Console:

  1. Access the Amazon DynamoDB console available at https://console.aws.amazon.com/dynamodbv2/, and choose Tables.
  2. Open the Amazon DynamoDB table that you want to configure.
  3. Select the Additional Settings tab, and choose Edit in the Read/write capacity section.
  4. For Capacity mode select Provisioned and configure the following settings:
  5. For Read capacity and Write capacity set the Auto scaling setting to On to enable Auto Scaling for your DynamoDB table. To avoid throttling, ensure that your read and write provisioned capacity units are high enough to handle the incoming traffic.
  6. For Minimum capacity units, enter the lower boundary for the auto-scaling range.
  7. For Maximum capacity units, enter the upper boundary for the auto-scaling range.
  8. For Target utilization (%), provide the target utilization for your table (%).
  9. Choose Save Changes to apply the changes. By enabling the feature, you authorize DynamoDB to scale capacity by using a predefined service-linked role created for this purpose, named "AWSServiceRoleForApplicationAutoScaling_DynamoDBTable".
  10. Choose Save Changes to apply the changes.

Useful Links

  1. Amazon DynamoDB Service FAQs
  2. Managing capacity automatically with auto scaling
  3. register-scalable-target CLI command
  4. put-scaling-policy CLI command
Blog

Learn cloud security with our research blog