Resource: aws_eks_access_entry

Access Entry Configurations for an EKS Cluster.

Example Usage

resource "aws_eks_access_entry" "example" {
  cluster_name      = aws_eks_cluster.example.name
  principal_arn     = aws_iam_role.example.arn
  kubernetes_groups = ["group-1", "group-2"]
  type              = "STANDARD"
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

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

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import EKS add-on using the cluster_name and principal_arn separated by a colon (:). For example:

import {
  to = aws_eks_access_entry.my_eks_entry
  id = "my_cluster_name:my_principal_arn"
}

Using terraform import, import EKS access entry using the cluster_name and principal_arn separated by a colon (:). For example:

% terraform import aws_eks_access_entry.my_eks_access_entry my_cluster_name:my_principal_arn