1

In Step Functions workflow, I have a state in which I am trying to call an API endpoint /v1/map?json=1 but the problem is json=1 is not getting picked up. It appears only /v1/map gets passed checking the CloudWatch Logs.

    {
      "Type": "Task",
      "Resource": "arn:aws:states:::apigateway:invoke",
      "Parameters": {
        "ApiEndpoint": "asdf.execute-api.us-east-1.amazonaws.com",
        "Method": "POST",
        "Stage": "dev",
        "Path": "/v1/map?json",
        "Headers": {
          "Accept": [
            "application/json"
          ]
        },
        "Stage": "dev",
        "AuthType": "IAM_ROLE"
      },
      "Next": "Lambda Invoke",
      "ResultPath": "$.myStateInput"
    }

Is passing URL parameters not supported? What happens if I don't pass any value to isJson and just do ?isJson would that also get ignored?

1 Answer 1

1

Query Paramaters are accepted, just not as part of the Path:

"QueryParameters": {
    "json": ["1"]
},
Sign up to request clarification or add additional context in comments.

1 Comment

seems kinda crazy, I'm finding the custom language they built not very intuitive and just too verbose, I'm going crazy working inside that tiny beta studio editor

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.