lttkgp / R2-D2

Facebook connector for C-3PO
MIT License
7 stars 4 forks source link

Update dynamoDB createTable function to also setup the table + index with autoscaling enabled #15

Open ghostwriternr opened 3 years ago

ghostwriternr commented 3 years ago

Currently, the createTable function creates a DynamoDB table + index as required, but doesn't set up autoscaling for either of them. This is essential to have since we create the table with the read & write capacity units set to 1 so there's a good chance we will hit the threshold for complicated/new queries we might add to the table.

juozasget commented 3 years ago

Hey @ghostwriternr

After having a look at AWS docs I decided this functionality should live in a separate place since it uses application autoscaling API's and not DynamoDB apis. https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.CLI.html

Let me know how your take on it :)