Manages an EMR Containers (EMR on EKS) Virtual Cluster.
resource "aws_emrcontainers_virtual_cluster" "example" {
container_provider {
id = aws_eks_cluster.example.name
type = "EKS"
info {
eks_info {
namespace = "default"
}
}
}
name = "example"
}
The following arguments are required:
container_provider
- (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 default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.id
- The name of the container provider that is running your EMR Containers clusterinfo
- Nested list containing information about the configuration of the container provider
eks_info
- 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 runningtype
- The type of the container providerThis resource exports the following attributes in addition to the arguments above:
arn
- ARN of the cluster.id
- The ID of the cluster.tags_all
- Map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.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