Is there a mechanism/framework available to generate code from a CloudFormation template?
Asked
Active
Viewed 184 times
1

Gary Sharpe
- 2,369
- 8
- 30
- 51
-
1Can you clarify your question? You want to generate a CloudFormation template with code? The other way around? – jogold Apr 23 '19 at 19:55
-
'generate code from CloudFormation template'. I want to start with a template, and then generate the code (java, python, etc.) that would create that template. – Gary Sharpe Apr 30 '19 at 17:56
-
1Have a look at https://github.com/awslabs/aws-cdk and https://github.com/awslabs/aws-cdk/blob/master/packages/cdk-dasm/README.md – jogold May 01 '19 at 07:25
1 Answers
1
There are two tools:
- Troposphere is a Python library to create CloudFormation stacks from Python code.
- CDK is a JavaScript library to create CloudFormation stacks from JavaScript / TypeScript code.

madhead
- 31,729
- 16
- 153
- 201