1 Answer
- Newest
- Most votes
- Most comments
0
I think it's a fault in the documentation (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-inputtransformer.html) rather than a bug. Looks like when specifying a String (rather than JSON) for InputTemplate it must internally contain quotes. Even though this isn't described in the doco, the YAML example they provide shows it:
InputTemplate: |
"instance <instance> is in <state>"
This will produce JSON with embedded quotes:
{'InputTemplate': '"instance <instance> is in <state>"\n'}
whereas these two forms (like your original attempt that fails) don't produce JSON with embedded quotes:
InputTemplate: |
instance <instance> is in <state>
InputTemplate: "instance <instance> is in <state>"
Relevant content
- Accepted Answerasked 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago