Distributed Map - MonteCarlo Simulation

This workflow is an application of a Step Functions distributed map state, implementing a Monte Carlo simulation with parallel calculations.

The state machine performs random sampling of input parameters to generate inputs in S3.
The distributed map uses the input samples to run calculations in parallel.
For each input sample the Step Functionswill call a child state machine to run calculation.
The results are stored in S3, and pre-signed URLs are returned in execution outputs.

< Back to all workflows

GitHub icon View this workflow on GitHub


Clone repo

git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/distributed-map-montecarlo/cd step-functions-workflows-collection/distributed-map-montecarlo/

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete.

Additional resources

Created by:

Harun Hasdal

Harun Hasdal

Senior Solutions Architect @ AWS. Serverless advocate.

Follow on LinkedIn