Skip to content

Better error message for reference to API in the same template #1038

@ylynn

Description

@ylynn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions