Ensure Auto-scaling is configured for both index and tables in AWS DynamoDb

MEDIUM

Description

Not enabling the Auto Scaling, capacity or load balancing issues may arise which can bring an application down.

Remediation

In AWS Console -

  1. Sign in to AWS console and open the DynamoDB console.
  2. In the navigation pane on the left side of the console, select Tables.
  3. Select the table that you want to work with and select the Additional settings tab.
  4. In the Read/write capacity section, select Edit.
  5. In the Capacity mode section, select Provisioned.
  6. In the Table capacity section, set Auto scaling to On for Read capacity, Write capacity, or both.
  7. Select save to save the settings.

In Terraform -

  1. Create an aws_appautoscaling_policy resource with a resource_id that belongs to the DynamoDB object.
  2. Configure the scalable_dimension field for dynamodb:table.
  3. Repeat steps 1 and 2 for dynamodb:index.

References:
https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appautoscaling_policy#scalable_dimension

Policy Details

Rule Reference ID: AC_AWS_0016
CSP: AWS
Remediation Available: No
Resource Category: Compute
Resource Type: Auto Scaling

Frameworks