Orchestrate Amazon Batch jobs with Step Functions state machines in the Amazon Batch console - Amazon Batch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Orchestrate Amazon Batch jobs with Step Functions state machines in the Amazon Batch console

You can use the Amazon Batch console to view details about your Step Functions state machines and the functions that they use.

Viewing state machine details

The Amazon Batch console displays a list of your state machines in the current Amazon Web Services Region that contain at least one workflow step that submits a Amazon Batch job.

Choose a state machine to view a graphical representation of the workflow. Steps highlighted in blue represent Amazon Batch jobs. Use the graph controls to zoom in, zoom out, and center the graph.

Note

When a Amazon Batch job is dynamically referenced with JsonPath in the state machine definition, the function details cannot be shown in the Amazon Batch console. Instead, the job name is listed as a Dynamic reference, and the corresponding steps in the graph are grayed out.

To view state machine details
  1. Open the Amazon Batch console Workflow orchestration powered by Step Functions page.

  2. Choose a state machine.

For more information, see Step Functions in the Amazon Step Functions Developer Guide.

Editing a state machine

When you want to edit a state machine, Amazon Batch opens the Edit definition page of the Step Functions console.

To edit a state machine
  1. Open the Amazon Batch console Workflow orchestration powered by Step Functions page.

  2. Choose a state machine.

  3. Choose Edit.

    The Step Functions console opens the Edit definition page.

  4. Edit the state machine and choose Save.

For more information about editing state machines, see Step Functions state machine language in the Amazon Step Functions Developer Guide.

Running a state machine

When you want to run a state machine, Amazon Batch opens the New execution page of the Step Functions console.

To run a state machine
  1. Open the Amazon Batch console Workflow orchestration powered by Step Functions page.

  2. Choose a state machine.

  3. Choose Execute.

    The Step Functions console opens the New execution page.

  4. (Optional) Edit the state machine and choose Start execution.

For more information about running state machines, see Step Functions state machine execution concepts in the Amazon Step Functions Developer Guide.