serverless-operations / serverless-step-functions

AWS Step Functions plugin for Serverless Framework ⚡️
Other
1.02k stars 204 forks source link

Invalid type for parameter selectionPattern #593

Open louis0802 opened 8 months ago

louis0802 commented 8 months ago

This is a Bug Report

Description

For bug reports:

stepFunctions:
  validate: true
  stateMachines:    
    process:
      name: processStepMachine
      type: EXPRESS
      role:
        Fn::GetAtt: ["ProcessStateMachineRole", "Arn"]
      events:
        - http:
            path: /process
            method: post
            action: StartSyncExecution
            request:
              template:
                application/json: |
                  #set( $body = $util.escapeJavaScript($input.json('$')) )
                  {
                    "input": "$body",
                    "stateMachineArn": "arn:aws:states:${aws:region}:000000000000:stateMachine:processStepMachine"
                  }
      definition:
        StartAt: process
        States:
          process:
            Type: Task
            Resource:
              Fn::GetAtt: [process, Arn]
            End: true  

Similar or dependent issues:

Additional Data

I checked the code and found it is defined in int not string. Does anyone face the same issue? Could I create PR for it? https://github.com/serverless-operations/serverless-step-functions/blob/8772ae7d8662b80bc584342cc39e48fc6f9c6a53/lib/deploy/events/apiGateway/methods.js#L199