Description:
Need a better error message for reference to API in the same template
Steps to reproduce the issue:
Template:
AppStack:
Type: AWS::Serverless::Application
Properties:
...
AnotherFunction:
Type: AWS::Serverless::Function
Properties:
Events:
SomeEvent:
Type: Api
Properties:
RestApiId:
Fn::GetAtt:
- AppStack
- Outputs.ApiGatewayId
...
Fail with an unhandled exception