title: How to generate CloudFormation code from Java?
body: <p>Is there a way to write CloudFormation templates in Java code and generate <code>yaml</code> or <code>json</code> from them?</p>
  
  <p>I spotted this <a href="https://github.com/cloudtools/troposphere" rel="nofollow noreferrer">troposphere</a> tool that allows you to write Python code decribing the stack and generate CloudFormation code from it.</p>
  
  <p>I'm looking for similar solution that would allow me to write code in Java instead. Is there any?</p>