terraform-aws-dynamodb-autoscaler

Terraform module to provision DynamoDB autoscaler.

Terraform AWS DynamoDB Autoscaler

GitHub Repo https://github.com/cloudposse/terraform-aws-dynamodb-autoscaler
Terraform Module terraform-aws-dynamodb-autoscaler
Release Release
Build Status Build Status

Autoscaler scales up/down the provisioned IOPS for a DynamoDB table based on the load.

Usage

Include this module in your existing terraform code:

HCL
module "dynamodb_autoscaler" {
  source                           = "git::https://github.com/cloudposse/terraform-aws-dynamodb-autoscaler.git?ref=master"
  domain_name                      = "example.com"
  proces_domain_validation_options = "true"
  ttl                              = "300"
}

Variables

Name Default Description Required
namespace `` Namespace (e.g. cp or cloudposse) Yes
autoscale_read_target 10 The target value for DynamoDB read autoscaling No
autoscale_min_read_capacity 5 DynamoDB autoscaling min read capacity No
autoscale_max_read_capacity 20 DynamoDB autoscaling max read capacity No
autoscale_min_write_capacity 5 DynamoDB autoscaling min write capacity No
autoscale_max_write_capacity 20 DynamoDB autoscaling max write capacity No
enabled true Set to false to prevent the module from creating any resources No
stage `` Stage (e.g. prod, dev, staging) Yes
name `` Name (e.g. app or cluster) Yes
dynamodb_table_name `` DynamoDB table name Yes
dynamodb_table_arn `` DynamoDB table ARN Yes
attributes [] Additional attributes (e.g. policy or role) No
tags {} Additional tags (e.g. map("BusinessUnit","XYZ") No
delimiter - Delimiter to be used between namespace, stage, name, and attributes No
autoscale_write_target 10 Delimiter to be used between namespace, stage, name, and attributes No