Support Step Function Actions in Api Gateway
Feature Proposal
Description:
Similar to this post https://github.com/serverless-operations/serverless-step-functions/issues/72 for serverless-framework, I was wondering if there is an easy way to create Api Gateway endpoints that directly invoke Step Functions API actions (e.g. DescribeExecution, ListExecutions, etc.) without creating an entire Api Gateway resource that calls the URL. If not, is this a reasonable feature request? As mentioned in the post I linked, an "Action:" parameter could added to the Events to distinguish the different actions (StartExecution, DescribeExecution, etc.):
Events:
StateMachineApi:
Type: Api
Properties:
Method: get
Path: /describe
Action:DescribeExecution
@drewsb You should have a look at the AWS::Serverless::StateMachine Resource: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-statemachine.html
I think that is exactly what you are asking for.
@jfuss No I'm requesting an enhancement to AWS::Serverless::StateMachine. There is currently no way to invoke a Step Function action from an API Gateway endpoint other than StartExecution.
any updates ?