Resource: aws_emrserverless_application

Manages an EMR Serverless Application.

Example Usage

Basic Usage

resource "aws_emrserverless_application" "example" {
  name          = "example"
  release_label = "emr-6.6.0"
  type          = "hive"
}

Initial Capacity Usage

resource "aws_emrserverless_application" "example" {
  name          = "example"
  release_label = "emr-6.6.0"
  type          = "hive"

  initial_capacity {
    initial_capacity_type = "HiveDriver"

    initial_capacity_config {
      worker_count = 1
      worker_configuration {
        cpu    = "2 vCPU"
        memory = "10 GB"
      }
    }
  }
}

Maximum Capacity Usage

resource "aws_emrserverless_application" "example" {
  name          = "example"
  release_label = "emr-6.6.0"
  type          = "hive"

  maximum_capacity {
    cpu    = "2 vCPU"
    memory = "10 GB"
  }
}

Argument Reference

The following arguments are required:

auto_start_configuration Arguments

auto_stop_configuration Arguments

initial_capacity Arguments

maximum_capacity Arguments

network_configuration Arguments

image_configuration Arguments

initial_capacity_config Arguments

worker_configuration 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 EMR Severless applications using the id. For example:

import {
  to = aws_emrserverless_application.example
  id = "id"
}

Using terraform import, import EMR Severless applications using the id. For example:

% terraform import aws_emrserverless_application.example id