Jinja2 instead of template_file.#28
Conversation
for building Terraform Templates. This was really coming from the Amazon Account Factory Terraform modules in which they use jinja-cli to convert Jinja templates into Terraform files. I decided to refactor your phishing_app template. Please note the following: - templates/phishing_app.jinja would be where the Jinja based terraform module will live within the generator - phishing_app.py is now much smaller in size with less code required to make it work. You will need to have a requirements.txt that installed Jinja2 itself.
|
Hello, Please make the necessary changes to the file |
This is a great idea for enhancement. But we need to make this change across all 8 of the generators, coordinate the changes, and update the documentation. Waiting to see if someone can make the changes or I'll prioritize this myself at some point in the future. |
While working on a different project, I came across a great idea for building Terraform Templates. This came from the Amazon Account Factory Terraform modules, which use jinja-cli to convert Jinja templates into Terraform files. I decided to refactor your phishing_app template. Please note the following: