How can sync up my terraform dynamoDB table definition and my local code dynamoDB table definition

Viewed 10

I have two places where I define a dynamoDB table definition. One in terraform and another in code for local development which creates the table definitions in a dynamoDB docker container. When I make changes in the table, I have to make them in two places. Is there anyway I can consolidate it to one place? Can a docker image use the terraform table definition? Or is the only solution writing a scrip that generates the two files based on a file.

0 Answers
Related