Creates an AWS Glue workflow with two triggers and two jobs, forming a simple directed acyclic graph (DAG).

Terraform Template

resource "aws_glue_trigger" "example-inner" {
  actions = ["another-example-job"]
  name = "trigger-inner"

  predicate {
    conditions = ["example-job", "SUCCEEDED"]
  }
  type = "CONDITIONAL"
  workflow_name = aws_glue_workflow.example.name
}

resource "aws_glue_trigger" "example-start" {
  actions = ["example-job"]
  name = "trigger-start"
  type = "ON_DEMAND"
  workflow_name = aws_glue_workflow.example.name
}

resource "aws_glue_workflow" "example" {
  name = "example"
}