You should check out troposphere (<a href="https:&#x2F;&#x2F;github.com&#x2F;cloudtools&#x2F;troposphere&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cloudtools&#x2F;troposphere&#x2F;</a>) and stacker (<a href="https:&#x2F;&#x2F;github.com&#x2F;remind101&#x2F;stacker&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;remind101&#x2F;stacker&#x2F;</a>).  I&#x27;m a maintainer of both - we try to make CF easier by catching errors earlier, and allowing you to do things like write for loops, in troposphere.  stacker tries to take your troposphere templates and tie them together as totally separate stacks.