aws-step-functions

AWS API Gateway with Step Function

喜夏-厌秋 提交于 2019-12-01 00:45:51
I want a sample to integrate AWS API Gateway with Step Function. I have read this tutorial Creating a Step Functions API Using API Gateway but that tutorial needs me to send request in format of { "input": "{}", "name": "PostmanExecution", "stateMachineArn": "arn:aws:states:us-east-1:123456789012:stateMachine:Custom" } I want to send normal request and configure this stateMachineArn in API Gateway only, so that clients dont need to send this. Create your API Gateway resource and method. Then in the "Method Execution" settings, in the Integration Request, use these settings: Integration type:

How can i call AWS Step Functions by API Gateway? [closed]

早过忘川 提交于 2019-11-30 21:19:42
I would like to know how to make API Gateway call a Step Function and execute it. API Gateway added support for Step Functions currently. Now you can create an AWS Service integration via API Gateway Console. Integration Type: AWS Service AWS Service: Step Functions HTTP method: POST Action Type: Use action name Action: StartExecution Execution role: role to start the execution Headers: X-Amz-Target -> 'AWSStepFunctions.StartExecution' Content-Type -> 'application/x-amz-json-1.0' Body Mapping Templates/Request payload: { "input": "string", "name": "string", "stateMachineArn": "string" } You

How can i call AWS Step Functions by API Gateway? [closed]

筅森魡賤 提交于 2019-11-30 05:14:06
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I would like to know how to make API Gateway call a Step Function and execute it. 回答1: API Gateway added support for Step Functions currently. Now you can create an AWS Service integration via API Gateway Console. Integration Type: AWS Service AWS Service: Step Functions HTTP

How to specify multiple result path values in AWS Step Functions

﹥>﹥吖頭↗ 提交于 2019-11-29 04:01:25
问题 I have a AWS Step Function State formatted as follows: "MyState": { "Type": "Task", "Resource": "<MyLambdaARN>", "ResultPath": "$.value1" "Next": "NextState" } I want to add a second value but can't find out how anywhere. None of the AWS examples display multiple ResultPath values being added to the output. Would I just add a comma between them? "MyState": { "Type": "Task", "Resource": "<MyLambdaARN>", "ResultPath": "$.value1, $.value2" "Next": "NextState" } Or is there a better way to format

Api gateway get output results from step function?

ぃ、小莉子 提交于 2019-11-29 01:43:20
I followed tutorial on creating and invoking step functions I'm getting output in my GET request of api as { "executionArn": "arn:aws:states:ap-northeast-1:123456789012:execution:HelloWorld:MyExecution", "startDate": 1.486772644911E9 } But, instead of above response I want my step functions output, which is given by end state as below. { "name":"Hellow World" } How to achieve this? AWS Step Functions are asynchronous and do not immediately return their results. API Gateway methods are synchronous and have a maximum timeout of 29 seconds. To get the function output from a Step Function, you

Api gateway get output results from step function?

冷暖自知 提交于 2019-11-27 16:14:33
问题 I followed tutorial on creating and invoking step functions I'm getting output in my GET request of api as { "executionArn": "arn:aws:states:ap-northeast-1:123456789012:execution:HelloWorld:MyExecution", "startDate": 1.486772644911E9 } But, instead of above response I want my step functions output, which is given by end state as below. { "name":"Hellow World" } How to achieve this? 回答1: AWS Step Functions are asynchronous and do not immediately return their results. API Gateway methods are