Hey there!
I’ve been trying to set up Localstack so that I can invoke an API Gateway which then triggers a step functions, I have everything created, however when I call the API Endpoint with curl i get the following:
{"Type": "User", "message": "Error invoking integration for API Gateway ID '5zpknu8ld7': Expecting value: line 1 column 1 (char 0)", "__type": "InvalidRequest"}
This is how i’m creating the integration:
awslocal apigateway put-integration \
--rest-api-id $gateway_id \
--resource-id $session_resource_id \
--http-method GET \
--type AWS \
--integration-http-method POST \
--uri arn:aws:apigateway:us-east-1:states:action/StartExecution \
--request-parameters '{ "input": "{}", "name": "MyExecution", "stateMachineArn": "'"$STEP_FUNCTION_ARN"'" }' \
--passthrough-behavior WHEN_NO_MATCH
Does anyone have any ideas why this is happening?