<!-- Before reporting a new issue, make sure we don't have any duplicates already open or closed by searching the issues list. If there is a duplicate, re-open or add a comment to the existing issue instead of creating a new one. If you are reporting a bug, make sure to include relevant information asked below to help with debugging. ## GENERAL HELP QUESTIONS ## Github Issues is for bug reports and feature requests. If you have general support questions, the following locations are a good place: - Post a question in StackOverflow with "aws-sam" tag --> **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