2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
Hello,
The correct syntax looks like this:
AWS stepfunctions start-execution --state-machine-arn $ARN --input "{\"first_name\" : \"test\"}"
I agree with you that the documentation is misleading/confusing because "input": "{\"first_name\" : \"test\"}"
is not a valid JSON.
If your having issues with JSON encoding, jq can help, for example:
AWS stepfunctions start-execution --state-machine-arn $ARN --input "$(echo '{"my_key": "my_value"}' | jq -R . )"
You can also read the input from a file:
aws stepfunctions start-execution --state-machine-arn $ARN --input "$(jq -R . input.json --raw-output)"
I hope this helps!
Regards,
Carl Östrand
답변함 2년 전
-1
Hello, Attaching the link necessary for the same. Please refer the same to check for the syntax and the right options . [1]
Hope this helps !!
Link- https://awscli.amazonaws.com/v2/documentation/api/latest/reference/stepfunctions/start-execution.html -- [1]
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전