Configures an EMR cluster with a step for setting up Hadoop debugging and lifecycle rules to ignore changes.

Terraform Template

resource "aws_emr_cluster" "example" {

  lifecycle {
    ignore_changes = ["step"]
  }

  step {
    action_on_failure = "TERMINATE_CLUSTER"

    hadoop_jar_step {
      args = ["state-pusher-script"]
      jar = "command-runner.jar"
    }
    name = "Setup Hadoop Debugging"
  }
}