Orchestrate AWS Batch jobs with Step Functions state machines in the AWS Batch console - AWS Batch

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

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

Viewing state machine details

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

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

Note

When a AWS Batch job is dynamically referenced with JsonPath in the state machine definition, the function details cannot be shown in the AWS 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 AWS Batch console Workflow orchestration powered by Step Functions page.

  2. Choose a state machine.

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

Editing a state machine

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

To edit a state machine
  1. Open the AWS 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 AWS Step Functions Developer Guide.

Running a state machine

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

To run a state machine
  1. Open the AWS 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 AWS Step Functions Developer Guide.