Activity State Machine

Wait for an activity worker to complete it's task

This application creates a State Machine with Activity state that enables you to implement a worker hosted anywhere. An activity worker can be an application running on EC2 instance/ AWS Lambda or a mobile device application that can make HTTP connection.
The example workflow runs an activity task state which waits for activity worker running on AWS Lambda. When State Machine workflow reaches activity task state, it pauses in In progress status and waits for activity worker to poll for a task. Once the function polls for activity task, the workflow then waits for the time configured in TimeoutSeconds to allow worker complete and report success/failure.

Launch Stack
< 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/activity-state-machine/cd step-functions-workflows-collection/activity-state-machine

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete.

Created by:

Sahithi Ginjupalli

Sahithi Ginjupalli

Sahithi Ginjupalli is a Cloud Engineer with a passion for continuous learning and in-depth exploration of her field. She helps optimize client applications through strategic implementation of AWS services, enhancing their efficiency and performance.

Follow on LinkedIn