Defines a Batch Job using EKS properties, including pod properties and metadata.

Terraform Template

resource "aws_batch_job_definition" "test" {

  eks_properties {

    pod_properties {

      containers {
        command = ["sleep", "60"]
        image = "public.ecr.aws/amazonlinux/amazonlinux:1"

        resources = {
          0 = "[object Object]"
        }
      }
      host_network = true
    }
  }
  name = " tf_test_batch_job_definition_eks"
  type = "container"
}