Open skinny85 opened 2 years ago
The problem is here. Our CFN parser uses the built-in Aws.NO_VALUE
constant, which erroneously assumes that AWS::NoValue
can only be used for a string, but of course NoValue
can be used for any type, including complex types.
So, the solution is to change this line to use an IResolvable
instead of Aws.NO_VALUE
, and this way we'll never get into this branch of the getBoolean()
function, and everything will work great.
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
@comcalvi should I post a fix for this? It should be easy, as I explained in this comment.
What is the problem?
When trying to include a template with the
cloudformation-include
module that uses{ Ref: 'AWS::NoValue' }
for a boolean-typed property, you get an error like:Reproduction Steps
Here's a minimal template showing the issue: