Replies: 4 comments 1 reply
-
That's weird. Have you figured out what is causing this? |
Beta Was this translation helpful? Give feedback.
-
Nope, haven't had time. My current workaround is to download the file with the sceptre |
Beta Was this translation helpful? Give feedback.
-
My first impulse would be to look at encoding issues here. Perhaps we're not properly decoding the response or it's not encoded in utf-8 but instead something different. |
Beta Was this translation helpful? Give feedback.
-
I have finally figured this out... The Sceptre jinja environment's autoescape setting is enabled by default therefore jinja is auto escaping the characters when rendering the template. There are two ways to get around this problem:
|
Beta Was this translation helpful? Give feedback.
-
We get extra
'
and"
characters in our template only when it's downloaded using the http sceptre template handlerenvironment
Steps to reproduce:
Create the following sceptre template config.
generate cloudformation template..
Actual behaviour:
Notice the
'
and"
characters in theValue
property.Expected behavior:
Now download the jinja template
https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.3.7/templates/ssm-parameters.j2
and save it to the localtemplate
folder. Generate the cloudformation using the local jinja file and it will generate without those extra charactersBeta Was this translation helpful? Give feedback.
All reactions