enum AccessEntryType
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Eks.V2.Alpha.AccessEntryType |
Go | github.com/aws/aws-cdk-go/awscdkeksv2alpha/v2#AccessEntryType |
Java | software.amazon.awscdk.services.eks.v2.alpha.AccessEntryType |
Python | aws_cdk.aws_eks_v2_alpha.AccessEntryType |
TypeScript (source) | @aws-cdk/aws-eks-v2-alpha ยป AccessEntryType |
Represents the different types of access entries that can be used in an Amazon EKS cluster.
Example
declare const cluster: eks.Cluster;
declare const nodeRole: iam.Role;
// Grant access with EC2 type for Auto Mode node role
cluster.grantAccess('nodeAccess', nodeRole.roleArn, [
eks.AccessPolicy.fromAccessPolicyName('AmazonEKSAutoNodePolicy', {
accessScopeType: eks.AccessScopeType.CLUSTER,
}),
], { accessEntryType: eks.AccessEntryType.EC2 });
Members
| Name | Description |
|---|---|
| STANDARD | Represents a standard access entry. |
| FARGATE_LINUX | Represents a Fargate Linux access entry. |
| EC2_LINUX | Represents an EC2 Linux access entry. |
| EC2_WINDOWS | Represents an EC2 Windows access entry. |
| EC2 | Represents an EC2 access entry for EKS Auto Mode. |
| HYBRID_LINUX | Represents a Hybrid Linux access entry for EKS Hybrid Nodes. |
| HYPERPOD_LINUX | Represents a HyperPod Linux access entry for Amazon SageMaker HyperPod. |
STANDARD
Represents a standard access entry.
Use this type for standard IAM principals that need cluster access with policies.
FARGATE_LINUX
Represents a Fargate Linux access entry.
Use this type for AWS Fargate profiles running Linux containers.
EC2_LINUX
Represents an EC2 Linux access entry.
Use this type for self-managed EC2 instances running Linux that join the cluster as worker nodes.
EC2_WINDOWS
Represents an EC2 Windows access entry.
Use this type for self-managed EC2 instances running Windows that join the cluster as worker nodes.
EC2
Represents an EC2 access entry for EKS Auto Mode.
Use this type for node roles in EKS Auto Mode clusters where AWS automatically manages the compute infrastructure. This type cannot have access policies attached.
See also: https://docs.aws.amazon.com/eks/latest/userguide/eks-auto-mode.html
HYBRID_LINUX
Represents a Hybrid Linux access entry for EKS Hybrid Nodes.
Use this type for on-premises or edge infrastructure running Linux that connects to your EKS cluster. This type cannot have access policies attached.
See also: https://docs.aws.amazon.com/eks/latest/userguide/hybrid-nodes.html
HYPERPOD_LINUX
Represents a HyperPod Linux access entry for Amazon SageMaker HyperPod.
Use this type for SageMaker HyperPod clusters that need access to your EKS cluster for distributed machine learning workloads. This type cannot have access policies attached.
See also: https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod.html

.NET
Go
Java
Python
TypeScript (