Troposphere (<a href="https:&#x2F;&#x2F;github.com&#x2F;cloudtools&#x2F;troposphere" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cloudtools&#x2F;troposphere</a>) is a mature Python CloudFormation solution that sounds similar to your home brewed one.