Skip to content

Feature request: Support synchronous StepFunctions executions from API Gateway #2561

@ljacobsson

Description

@ljacobsson

Describe your idea/feature/enhancement

I feel that there's a lot of improvements around the DX when creating an API Gateway -> StepFunctions Express sync integration. When working with a Lambda the DX is great, but with StepFunctions we have to dive in to writing OpenAPI spec to map the state machine output to the response.

Proposal

I wish the SAM translator could do something like this

MyExpressStateMachine:
  Type: AWS::Serverless::StateMachine
  Properties:
     ...
     Events:
       ApiEvent:
         Type: Api:
           Properties:
             Path: /{id}
             Method: get
             InvocationType: synchronous

The output from the statemachine should be mapped to the response body from API Gateway.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions