- Create module using the cookiecutter tool and this boilerplate. Specify all the required variables.
$ cookiecutter https://github.com/nevtum/terraform-dynamodb-cookiecutter.git
- Assuming you've named your module
dynamo_table
reference it with
module "my_module" {
source = "./dynamo_table"
}
- Initialize your Terraform setup with
terraform init
- Plan your Terraform with
terraform plan
- Apply changes using
terraform apply
- Enjoy your new DynamoDB table on AWS!