1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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>"
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa