Skip to content

Incorrect ServiceEndpoint when there's an API GW function #215

@theburningmonk

Description

@theburningmonk

This is a Bug Report

Description

When you have both of these in the same serverless.yml:

  • an API GW function
  • API GW event for a step function
functions:
  handler:
    handler: functions/handler.handler
    events:
      - http:
          path: /
          method: get

stepFunctions:
  stateMachines:
    apiGatewayTrigger:
      events:
        - http:
            path: /{userId}/{petId}
            method: GET
      definition: ...

then sls deploy or sls package would generate incorrect ServiceEndpoint:

Service Information
service: step-functions-guide
stage: dev
region: us-east-1
stack: step-functions-guide-dev
resources: 19
api keys:
  None
endpoints:
  GET - https://szp2js5obh.execute-api.us-east-1.amazonaws.com/devamazonaws.com/dev/
functions:
  handler: step-functions-guide-dev-handler
  hello: step-functions-guide-dev-hello
layers:
  None
Serverless StepFunctions OutPuts
endpoints:
  GET - https://szp2js5obh.execute-api.us-east-1.amazonaws.com/devamazonaws.com/dev/{userId}/{petId}

Similar or dependent issues:

Additional Data

  • Serverless Framework Core Version you're using: 1.42.3
  • The Plugin Version you're using: 1.24.0
  • Operating System: OSX
  • Stack Trace:
  • Provider Error messages:

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