Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

Lambda Orchestration

Orchestrate a series of Lambda Functions

This workflow simulates a stock trading process. The first state simulates checking a stock price by generating a random number representing the price of a stock. The stage passes this price to the Generate Buy/Sell recommendation state which determines if the trader should buy or sell the stock. The recommendation is passed to an SQS queue simulating a trader verifying the recommendation and approving it.
This decision is passed to the Buy or Sell choice state which directs the flow to the proper buy or sell Lambda function. The result of the trade is sent to an SNS Topic.

Launch Stack

GitHub icon Visit the GitHub repo for this workflow.

< Back to workflows

Download

git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/lambda-orchestration-cdk/ cd step-functions-workflows-collection/lambda-orchestration-cdk

Deploy

1. Bootstrap CDK, if needed: <code>cdk bootstrap aws://{your-aws-account-number}/{your-aws-region}</code>2. Deploy the stack: <code>cdk deploy</code>


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: cdk destroy.

Additional resources

Mike Ellis

Presented by Mike Ellis

Mike is a Technical Account Manager at AWS.

Follow on LinkedIn