Resource: aws_emrcontainers_virtual_cluster

Manages an EMR Containers (EMR on EKS) Virtual Cluster.

Example Usage

Basic Usage

resource "aws_emrcontainers_virtual_cluster" "example" {
  container_provider {
    id   = aws_eks_cluster.example.name
    type = "EKS"

    info {
      eks_info {
        namespace = "default"
      }
    }
  }

  name = "example"
}

Argument Reference

The following arguments are required:

container_provider 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 Clusters using the id. For example:

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

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

% terraform import aws_emrcontainers_virtual_cluster.example a1b2c3d4e5f6g7h8i9j10k11l