Closed rymndhng closed 2 years ago
Input Template untouched
Template pre-processed unexpectedly and CloudFormation is not happy with it.
Conditions: CreateAlarms: !Equals [ !Ref CreateAlarms, "yes" ] InitialNoop: !Equals [ !Ref CodePath, "initial-noop" ] CreateStreamAlarms: !Equals [ !Ref CreateAlarms, "yes" ] InVpc: !Not [!Equals [!Ref VpcStackName, "" ]]
❯ iidy render invalid_expansion.yml Conditions: CreateAlarms: !Equals - !Ref CreateAlarms - 'yes' InitialNoop: !Equals - !Ref CodePath - initial-noop CreateStreamAlarms: !Equals - !Ref CreateAlarms - 'yes' InVpc: !Not _data: - !Ref VpcStackName - '' visited: false ctor: !<tag:yaml.org,2002:js/function> |- class AnonTag extends Tag { constructor() { super(...arguments); this.tag_name = tag_name; } } tag_name: Equals
I've used the !$escape workaround to bypass this issue for now.
!$escape
Expected
Input Template untouched
Actual
Template pre-processed unexpectedly and CloudFormation is not happy with it.
Input Template
Result