I am trying to invoke step function and pass an input "id" from request path. When I invoke it, I get message
"errorMessage": "Unable to resolve property Input from source {\"id\":\"$request.path.id\"}. Please make sure that the request to API Gateway contains all the necessary fields specified in request parameters.",
How do I specify value for Input?
Type: AWS::ApiGatewayV2::Integration
DependsOn:
- ApiGatewayHTTP
- MyStateMachine
Properties:
ApiId: !Ref 'ApiGatewayHTTP'
IntegrationType: AWS_PROXY
IntegrationSubtype: StepFunctions-StartSyncExecution
CredentialsArn: !GetAtt MyStateMachineExecutionRole.Arn
RequestParameters:
StateMachineArn: !GetAtt 'MyStateMachine.Arn'
Input: '{"id":"$request.path.id"}'
ConnectionType: INTERNET
PayloadFormatVersion: 1.0
TimeoutInMillis: 3000