The Amazon SDK for JavaScript V3 API
Reference Guide
Execute your workflow by using the Step Functions console
This topic is part of a tutorial that demonstrates to to invoke Lambda functions using Amazon Step Functions. To start at the beginning of the tutorial, see Creating Amazon serverless workflows using Amazon SDK for JavaScript.
You can invoke the workflow on the Step Functions console. An execution receives JSON input. For this example, you can pass the following JSON data to the workflow.
{ "inputCaseID": "001" }
To execute your workflow:
-
On the Step Functions console, choose Start execution.
-
In the Input section, pass the JSON data. View the workflow. As each step is completed, it turns green.
-
If the step turns red, an error occurred. You can click the step and view the logs that are accessible from the right side.
When the workflow is finished, you can view the data in the DynamoDB table.
Congratulations, you have created an Amazon serverless workflow by using the Amazon SDK for Java. As stated at the beginning of this tutorial, be sure to terminate all of the resources you create while going through this tutorial to ensure that you’re not charged. You can do this by deleting the Amazon CloudFormation stack you created in the Create the Amazon resources topic of this tutorial,as follows:
-
Open the Amazon CloudFormation in the Amazon management console
. Open the Stacks page, and select the stack.
Choose Delete.
For more Amazon cross-service examples, see Amazon SDK for JavaScript cross-service examples