Resource: aws_emrcontainers_job_template

Manages an EMR Containers (EMR on EKS) Job Template.

Example Usage

Basic Usage

resource "aws_emrcontainers_job_template" "example" {
  job_template_data {
    execution_role_arn = aws_iam_role.example.arn
    release_label      = "emr-6.10.0-latest"

    job_driver {
      spark_sql_job_driver {
        entry_point = "default"
      }
    }
  }

  name = "example"
}

Argument Reference

The following arguments are required:

job_template_data Arguments

configuration_overrides Arguments

application_configuration Arguments
monitoring_configuration Arguments
cloud_watch_monitoring_configuration Arguments
s3_monitoring_configuration Arguments

job_driver Arguments

spark_sql_job_driver Arguments
spark_submit_job_driver Arguments

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import EKS job templates using the id. For example:

import {
  to = aws_emrcontainers_job_template.example
  id = "a1b2c3d4e5f6g7h8i9j10k11l"
}

Using terraform import, import EKS job templates using the id. For example:

% terraform import aws_emrcontainers_job_template.example a1b2c3d4e5f6g7h8i9j10k11l