Sample projects for Step Functions

This page was generated from content adapted from the AWS Developer Guide

Poll for Job Status (Lambda, AWS Batch)

  • Note You can also implement this pattern without using a Lambda function. For information about controlling AWS Batch directly, see Using AWS Step Functions with other services.

  • Note wait_time instructs the Wait state to loop every 60 seconds.

Task Timer (Lambda, Amazon SNS)

  • Note This sample project implements an AWS Lambda function to send an Amazon Simple Notification Service (Amazon SNS) notification. You can also send an Amazon SNS notification directly from the Amazon States Language. See Using AWS Step Functions with other services.

Manage an Amazon EMR Job

  • Important Amazon EMR does not have a free pricing tier. Running the sample project will incur costs. You can find pricing information on the Amazon EMR pricing page. The availability of Amazon EMR service integration is subject to the availability of Amazon EMR APIs. Because of this, this sample project might not work correctly in some AWS Regions. See the Amazon EMR documentation for limitations in special Regions.

Dynamically process data with a Map state

  • Note Queues in Amazon SNS are eventually consistent. For best results, wait a few minutes between populating your queue and running an execution of your state machine.

Train a Machine Learning Model

  • Note This sample project may incur charges. For new AWS users, a free usage tier is available. On this tier, services are free below a certain level of usage. For more information about AWS costs and the Free Tier, see SageMaker Pricing.

Tune a Machine Learning Model

  • Note This sample project may incur charges. For new AWS users, a free usage tier is available. On this tier, services are free below a certain level of usage. For more information about AWS costs and the Free Tier, see SageMaker Pricing.

Preprocess data and train a machine learning model

  • Note This sample project may incur charges. For new AWS users, a free usage tier is available. On this tier, services are free below a certain level of usage. For more information about AWS costs and the Free Tier, see SageMaker Pricing.

Lambda orchestration example

  • Note This sample project may incur charges. For new AWS users, a free usage tier is available. On this tier, services are free below a certain level of usage. For more information about AWS costs and the free tier, see Pricing.

Start an Athena query

  • Note This sample project may incur charges. For new AWS users, a free usage tier is available. On this tier, services are free below a certain level of usage. For more information about AWS costs and the Free Tier, see Athena Pricing.

Manage an Amazon EKS cluster

  • Note This sample project may incur charges. For new AWS users, a free usage tier is available. On this tier, services are free below a certain level of usage. For more information about AWS costs and the Free Tier, see Amazon EKS Pricing.

Call a microservice with API Gateway

  • Note This sample project may incur charges. For new AWS users, a free usage tier is available. On this tier, services are free below a certain level of usage. For more information about AWS costs and the Free Tier, see Pricing.

Send a custom event to EventBridge

  • Note This sample project may incur charges. For new AWS users, a free usage tier is available. On this tier, services are free below a certain level of usage. For more information about AWS costs and the Free Tier, see EventBridge Pricing.

Invoke Synchronous Express Workflows

  • Note This sample project may incur charges. For new AWS users, a free usage tier is available. On this tier, services are free below a certain level of usage. For more information about AWS costs and the Free Tier, see Step Functions Pricing.

Run ETL/ELT workflows using Amazon Redshift

  • Note You can modify the ETL logic to receive data from other sources such as Amazon S3, which can use the COPY command to copy data from Amazon S3 to an Amazon Redshift table.

  • Note This sample project may incur charges. For new AWS users, a free usage tier is available. On this tier, services are free below a certain level of usage. For more information about AWS costs and the Free Tier, see AWS Step Functions pricing.

Last updated