Open delenamalan opened 1 year ago
The tool does not yet support the Fn:If conditional function (!If in your template) so the tool treats it as a literal string. I'll leave this open for tracking.
Is it currently on the roadmap to add !If
intrinsic function support to this tool?
We do plan to support this in time. It does, however, require supporting the whole conditional language first (e.g. equals/and/or/etc).
We just recently added support for conditions (including the !If function). Please give it a try, when you get a chance, and see if it resolves your issue.
I'm getting the
DATA_TYPE_MISMATCH
error ("The text does not match the expected JSON data type String, Number, or Boolean.") for my policy when I use an If-condition with an else value of!Ref "AWS::NoValue"
in theResource
array.If I use either
!Ref mySecondSecret
or!Ref "AWS::NoValue"
directly in theResource
array, I don't get the error anymore.This my policy, for example: