Building state machines with AWS Step Functions Workflow Studio (API217)

Workflow Studio and AWS Step Functions

Introduction to AWS Step Functions

  • AWS Step Functions is a workflow engine that runs state machines.
  • It has several key use case areas:
    • Data processing with the "Distributed Map" feature
    • Security automation (e.g., automated incident response)
    • Machine learning (e.g., data splitting, training, and testing)
    • Microservices orchestration

Introducing Workflow Studio

  • Workflow Studio is a visual editor for creating AWS Step Functions workflows.
  • It provides a graphical representation of the workflow, making it easier for business stakeholders to understand and reason about the process.
  • Workflows created in Workflow Studio can be exported as AWS Step Functions code (Amazon States Language) and versioned in a codebase.
  • Workflow Studio also allows you to load existing AWS Step Functions code back into the visual editor for further editing.

Hands-on Demo

  1. Creating a Blank Workflow: The speaker started with a blank canvas in the Workflow Studio and explained the different components available, including actions (AWS service integrations), flow components (for branching logic), and patterns (common use cases).

  2. Implementing the Image Processing Workflow:

    • The speaker used a Lambda function to extract metadata from an image.
    • They demonstrated how to configure the input/output handling and variable storage within the workflow.
    • The speaker then showed a pre-built version of the workflow, which included additional steps:
      • A Choice state to handle different image types
      • A DynamoDB put item action to store the image metadata
      • Parallel actions to create a thumbnail and call the Amazon Rekognition service to identify the image's top category
      • An update to the DynamoDB item with the Rekognition result
  3. Executing the Workflow and Reviewing the Results:

    • The speaker executed the workflow using a sample image and walked through the execution history and output.
    • The final result was the updated DynamoDB item with the image metadata, thumbnail, and top Rekognition category.

Key Takeaways

  • AWS Step Functions provides a powerful workflow engine for orchestrating various AWS services.
  • Workflow Studio is a visual editor that makes it easier to design, configure, and understand Step Functions workflows.
  • Workflow Studio allows you to bridge the gap between technical and business stakeholders by providing a more intuitive representation of the workflow.
  • The speaker demonstrated how to build a complete image processing workflow using Step Functions, showcasing the integration with various AWS services and the ability to manage input/output and state within the workflow.

Your Digital Journey deserves a great story.

Build one with us.

Cookies Icon

These cookies are used to collect information about how you interact with this website and allow us to remember you. We use this information to improve and customize your browsing experience, as well as for analytics.

If you decline, your information won’t be tracked when you visit this website. A single cookie will be used in your browser to remember your preference.

Talk to us