The declaration of deployment state is a very BIG and hard problem that has had millions of collective man hours spent over decades. I urge you not to think of it as a simple configuration.
In fact it is so hard that AWS has to build a new language on top of typescript ..versus cloudformation templates that it already had.
https://docs.aws.amazon.com/cdk/latest/guide/home.html
What you are building makes sense - I would drop cloudformation and surface Terraform right till the top.
So the way to use your tool is to install and use a new Terraform "provider".