Skip to content

Resource: awsEmrcontainersVirtualCluster

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

Example Usage

Basic Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.emrcontainersVirtualCluster.EmrcontainersVirtualCluster(
  this,
  "example",
  {
    containerProvider: {
      id: "${aws_eks_cluster.example.name}",
      info: {
        eksInfo: {
          namespace: "default",
        },
      },
      type: "EKS",
    },
    name: "example",
  }
);

Argument Reference

The following arguments are required:

  • containerProvider - (Required) Configuration block for the container provider associated with your cluster.
  • name – (Required) Name of the virtual cluster.
  • tags - (Optional) Key-value mapping of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

container_provider Arguments

  • id - The name of the container provider that is running your EMR Containers cluster
  • info - Nested list containing information about the configuration of the container provider
  • eksInfo - Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running
    • namespace - The namespace where the EMR Containers cluster is running
  • type - The type of the container provider

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - ARN of the cluster.
  • id - The ID of the cluster.
  • tagsAll - Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

EKS Clusters can be imported using the id, e.g.

$ terraform import aws_emrcontainers_virtual_cluster.example a1b2c3d4e5f6g7h8i9j10k11l