Open daveykane opened 5 years ago
The errors disappear if a rollback to v0.19.0.
It looks like there is a possible clash with cfn-include - if I remove this pre-compiler for the time being the errors disappear.
Now getting "Unable to process properties of ..." on a number of functions.
@daveykane what does your template look like? Looks like a Ref is failing to resolve? from the stack trace?
@TheSriram It's a very big template so I won't paste it all here but looking at the stack trace I see the handle_fn_ref happens after the handle_fn_if and the only Ref in my template that is part of an Fn::If condition is - Ref: 'AWS::NoValue'
@TheSriram I've narrowed it down to this one Action on a Role Policy:
- Action:
- 'cognito-idp:describeResourceServer'
- 'cognito-idp:UpdateUserPoolClient'
Effect: Allow
Resource:
- 'Fn::If':
- Debugging
- 'Fn::GetAtt':
- AcmeUserPool
- Arn
- Ref: 'AWS::NoValue'
If I replace Ref: 'AWS::NoValue'
with a Ref to something else the errors disappear.
Can confirm I have the same problem with 0.21.0 on templates with a ref to AWS::NoValue
within a Fn::If
statement.
Description
Trying to run the command
sam local start-api
and get an error.Observed result
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 0.21.0