terraform-aws-dynamodb icon indicating copy to clipboard operation
terraform-aws-dynamodb copied to clipboard

Can this enable autoscaling on seconder indices?

Open red8888 opened this issue 5 years ago • 3 comments

Dont see an example of autoscaling the index- maybe I missed it. Can this module apply autoscaling settings to table and indices?

red8888 avatar May 07 '19 16:05 red8888

@red8888 this can autoscale both tables and indexes https://github.com/cloudposse/terraform-aws-dynamodb-autoscaler https://github.com/cloudposse/terraform-aws-dynamodb-autoscaler/blob/master/main.tf#L90

aknysh avatar May 07 '19 16:05 aknysh

@aknysh how do you deal with the lifecycle issue with capacity?

I had to do this for tables so when capacity scales up terraform doesn't change it back: ignore_changes = ["read_capacity","write_capacity"]

Dont you have to ignore the entire global_secondary_index resource for scaling to work on indices?

red8888 avatar May 10 '19 18:05 red8888

@aknysh is there already a solution for this problem? So if you enable autoscaling on the global_secondary_index terraform does only ignore read_capacity, write_capacity from the table and not from the global_secondary_index.

Thank you in advanced.

mfroembgen avatar Mar 11 '20 06:03 mfroembgen