1. Packages
  2. AWS Classic
  3. How-to Guides
  4. AWS Step Functions

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

AWS Step Functions

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    View Code Deploy this example with Pulumi

    A basic example that demonstrates using AWS Step Functions with a Lambda function.

    This example also utilizes our Stack Readme feature. You can view the stack readme by going to the console by running pulumi console and selecting the README tab. See the stack-readme-ts example for a more detailed example.

    # Create and configure a new stack
    $ pulumi stack init stepfunctions-dev
    $ pulumi config set aws:region us-east-2
    
    # Install dependencies
    $ npm install
    
    # 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 stateMachineArn)
    
    # Remove the app
    $ pulumi destroy
    
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi