1. Packages
  2. AWS
  3. How-to Guides
  4. AWS Step Functions
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi

AWS Step Functions

aws logo
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi

    View Code Deploy this example with Pulumi

    A basic example that demonstrates using AWS Step Functions with a Lambda function, written in Python.

    # Create and configure a new stack
    pulumi stack init stepfunctions-dev
    pulumi config set aws:region us-east-2
    
    # Preview and run the deployment
    pulumi up
    
    # Start execution using the AWS CLI (or from the console at https://console.aws.amazon.com/states)
    aws stepfunctions start-execution --state-machine-arn $(pulumi stack output state_machine_arn)
    
    # Remove the app and its stack
    pulumi destroy && pulumi stack rm -y
    
    aws logo
    Viewing docs for AWS v7.22.0
    published on Wednesday, Mar 11, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.