Simplify configuration of DynamoDB Global Table Autoscaling #13208
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/dynamodb
Issues and PRs that pertain to the dynamodb service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Community Note
Description
Thanks to #12342, it's now extremely easy to manage DynamoDB Global Tables through terraform. However, it gets much more complicated when you want to enable autoscaling on these tables. Currently, you need to specify an
aws_appautoscaling_policy
and anaws_appautoscaling_target
for each table and index for each replica. Because each replica will be in a different region, you'll also need to do this using multiple AWS providers, which can be difficult due to terraform restrictions on dynamically configuring providers/aliases.Fortunately, DynamoDB surfaces some APIs (DescribeTableReplicaAutoScaling + UpdateTableReplicaAutoScaling) that allow configuring a table's autoscaling across all replicas/regions at once. If a terraform resource used that API, it would make autoscaling configuration much easier.
New or Affected Resource(s)
aws_dynamodb_table_replica_autoscaling
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: