Sceptre / sceptre-sam-handler

A Sceptre template handler for AWS Serverless Application Model (SAM)
Apache License 2.0
7 stars 2 forks source link

Keep jinja template upon request #4

Closed jynthn closed 1 year ago

jynthn commented 1 year ago

The sam handler generates a Jinja template as an intermediary step. During debugging complex templates it is sometimes useful to inspect this template. We delete this temporary file. While troubleshooting an issue we felt it is useful to have the option of keeping this file. This change allows us to pass a flag to keep the jinja file after processing. If we set skip_jinja_cleanup to True as a parameter the deletion is skipped.

zaro0508 commented 1 year ago

@jynthn could you please describe the motivation behind this change in the PR description? Why do you need the jinja file after processing?