1回答
- 新しい順
- 投票が多い順
- コメントが多い順
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>"