Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Enable DynamoDB Table Auto Scaling Rule

This rule requires enabling auto scaling for DynamoDB tables to ensure efficient performance and resource utilization.

RuleDynamoDB table auto scaling should be enabled
FrameworkFederal Financial Institutions Examination Council (FFIEC)
Severity
High

DynamoDB Table Auto Scaling for FFIEC Compliance

Description

In order to ensure compliance with the Federal Financial Institutions Examination Council (FFIEC) regulations, it is recommended to enable auto scaling for DynamoDB tables. Auto scaling allows the automatic adjustment of read and write capacity based on the demand placed on the table. This allows the table to efficiently handle varying workloads and accommodate spikes in traffic.

Enabling auto scaling for DynamoDB tables ensures that the table can dynamically adapt to changing usage patterns, providing a consistent level of performance to users while maintaining compliance with FFIEC regulations.

Troubleshooting

If there are any issues with DynamoDB table auto scaling, follow these troubleshooting steps:

  1. 1.
    Check the status of auto scaling for the DynamoDB table.
  2. 2.
    Ensure that the correct policies and permissions are in place for enabling auto scaling.
  3. 3.
    Verify that the table has appropriate read and write capacity provisioned.
  4. 4.
    Review the CloudWatch alarms associated with the table to identify any scaling issues.
  5. 5.
    Check for any errors or warnings in the CloudTrail logs related to auto scaling.

Implementation

To enable auto scaling for a DynamoDB table, follow these steps:

  1. 1.
    Identify the DynamoDB table that needs to have auto scaling enabled.
  2. 2.
    Open the AWS Management Console and navigate to the DynamoDB service.
  3. 3.
    Select the desired table from the list of tables.
  4. 4.
    Click on the "Capacity" tab in the table details.
  5. 5.
    Under "Auto Scaling", click on the "Manage capacity" button.
  6. 6.
    On the "Auto scaling" configuration page, click on "Add autoscaling" to create a new auto scaling policy.
  7. 7.
    Configure the auto scaling policy based on the desired criteria, such as minimum and maximum capacity units, target utilization, and scaling metrics.
  8. 8.
    Click on "Save" to apply the auto scaling policy to the table.

Note: Ensure that the auto scaling configuration adheres to the specific requirements of FFIEC compliance.

Example

import boto3

# Create a DynamoDB client
dynamodb_client = boto3.client('dynamodb')

# Enable auto scaling for a table
response = dynamodb_client.update_table(
    TableName='ffiec_table',
    ProvisionedThroughput={
        'ReadCapacityUnits': 10,   # Set the initial read capacity
        'WriteCapacityUnits': 5    # Set the initial write capacity
    },
    BillingMode='PROVISIONED',
    # Configure auto scaling
    StreamSpecification={
        'StreamEnabled': False     # Optional, depends on your requirement
    },
    SSESpecification={
        'Enabled': False           # Optional, depends on your requirement
    },
    # Add any desired extra configuration here
    # ...
    # Enable auto scaling
    GlobalSecondaryIndexUpdates=[
        {
            'Update': {
                'IndexName': 'index_name',
                'ProvisionedThroughput': {
                    'ReadCapacityUnits': 10,
                    'WriteCapacityUnits': 5
                }
            }
        }
    ],
    # ...
    # Additional parameters as needed, based on your configuration
)

print(response)

Conclusion

Enabling auto scaling for DynamoDB tables ensures compliance with FFIEC regulations by allowing the table to automatically adjust its capacity based on workload demands. This provides efficient handling of varying workloads, better performance, and a consistent user experience. Additionally, troubleshooting steps and an example code snippet are provided to assist with implementing auto scaling for DynamoDB tables.

Is your System Free of Underlying Vulnerabilities?
Find Out Now