dynamodb-autoscaler

cloudposse/dynamodb-autoscaler/aws

Terraform Module HCL AWS

Terraform module to provision DynamoDB autoscaler

Install
module "dynamodb-autoscaler" {
source = "cloudposse/dynamodb-autoscaler/aws"
version = "0.16.0"
}
⭐ Source on GitHub 📦 Registry page
README

Terraform module to provision DynamoDB autoscaler. Autoscaler scales up/down the provisioned OPS for a DynamoDB table based on the load. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage ```hcl module "dynamodb_autoscaler" { source = "cloudposse/dynamodb-autoscaler/aws" # Cloud Posse recommends pinning every module to a specific version # version = "x.x.x" namespace = "eg" stage = "dev" name = "cluster" dynamodb_table_name = "eg-dev-cluster-terraform-state-lock" dynamodb_indexes = ["first-index", "second-index"] dynamodb_t

Inputs (35)
NameTypeDescriptionDefault
dynamodb_table_arnstringDynamoDB table ARN required
dynamodb_table_namestringDynamoDB table name required
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indinull
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length.null
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
autoscale_max_write_capacitynumberDynamoDB autoscaling max write capacity20
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["nanull
autoscale_max_read_capacity_indexnumberDynamoDB autoscaling max read capacity of the indexnull
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` null
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tagnull
autoscale_min_write_capacity_indexnumberDynamoDB autoscaling min write capacity of the indexnull
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp'null
autoscale_scale_in_cooldownnumberDynamoDB autoscaling scale in cooldownnull
autoscale_min_write_capacitynumberDynamoDB autoscaling min write capacity5
autoscale_read_target_indexnumberThe target value for DynamoDB read autoscaling of the indexnull
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will null
dynamodb_indexeslist(string)List of DynamoDB indexes[]
enabledboolSet to false to prevent the module from creating any resourcesnull
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thinull
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
Outputs (2)
appautoscaling_read_policy_arn — Appautoscaling read policy ARN
appautoscaling_write_policy_arn — Appautoscaling write policy ARN
Resources (2)
aws_appautoscaling_policyaws_appautoscaling_target
Details
FrameworkTerraform Module
LanguageHCL
Version0.16.0
Cloud AWS
★ Stars23
Forks32
Total downloads2.7M
Inputs35
Outputs2
Resources2
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated