Creating auto-scaling enabled AWS DynamoDB Table with Terraform

Ömer KARABACAK
1 min readOct 26, 2019

Last week, I was working on a task which needs DynamoDB Table and also auto-scaling to be enabled. For Infrastructure as Code approach, it should be written as Terraform script. In our project, we are mostly using CloudFormation for managing our AWS environments but this time, it was a task which needs working with the other teams and they are managing their environments with Terraform. So It was the time to do it on Terraform way. :) After looking for some examples and some documentation, I saw that there is no simple and working example, especially for DynamoDB autoscaling part in Terraform.

So I wrote this story. Maybe it could help to someone else. :) Of course, it can be divided into separate .tf files but to be a simple and working example, I put them into one .tf file as gist.

--

--