close
AWS Fundamentals Logo
AWS Fundamentals

AWS eks

24 CDK constructs available in aws-cdk-lib/aws-eks

import * as eks from 'aws-cdk-lib/aws-eks';

L2 Constructs16

Higher-level abstractions with sensible defaults and convenience methods.

AccessEntry

L2

Represents an access entry in an Amazon EKS cluster. An access entry defines the permissions and scope for a user or role to access an Amazon EKS cluster.

Addon

L2

Represents an Amazon EKS Add-On.

AlbController

L2

Construct for installing the AWS ALB Contoller on EKS clusters. Use the factory functions `get` and `getOrCreate` to obtain/create instances of this controller.

AwsAuth

L2

Manages mapping between IAM users and roles to Kubernetes RBAC configuration.

Cluster

L2

A Cluster represents a managed Kubernetes Service (EKS). This is a fully managed cluster of API Servers (control-plane) The user is still required to create the worker nodes.

FargateCluster

L2

Defines an EKS cluster that runs entirely on AWS Fargate. The cluster is created with a default Fargate Profile that matches the "default" and "kube-system" namespaces. You can add additional profiles using `addFargateProfile`.

FargateProfile

L2

Fargate profiles allows an administrator to declare which pods run on Fargate. This declaration is done through the profile’s selectors. Each profile can have up to five selectors that contain a namespace and optional labels. You must define a namespace for every selector. The label field consists of multiple optional key-value pairs. Pods that match a selector (by matching a namespace for the selector and all of the labels specified in the selector) are scheduled on Fargate. If a namespace selector is defined without any labels, Amazon EKS will attempt to schedule all pods that run in that namespace onto Fargate using the profile. If a to-be-scheduled pod matches any of the selectors in the Fargate profile, then that pod is scheduled on Fargate. If a pod matches multiple Fargate profiles, Amazon EKS picks one of the matches at random. In this case, you can specify which profile a pod should use by adding the following Kubernetes label to the pod specification: eks.amazonaws.com/fargate-profile: profile_name. However, the pod must still match a selector in that profile in order to be scheduled onto Fargate.

HelmChart

L2

Represents a helm chart within the Kubernetes system. Applies/deletes the resources using `kubectl` in sync with the resource.

KubectlProvider

L2

Implementation of Kubectl Lambda.

KubernetesManifest

L2

Represents a manifest within the Kubernetes system. Alternatively, you can use `cluster.addManifest(resource[, resource, ...])` to define resources on this cluster. Applies/deletes the manifest using `kubectl`.

KubernetesObjectValue

L2

Represents a value of a specific object deployed in the cluster. Use this to fetch any information available by the `kubectl get` command.

KubernetesPatch

L2

A CloudFormation resource which applies/restores a JSON patch into a Kubernetes resource.

Nodegroup

L2

The Nodegroup resource class.

OidcProviderNative

L2

IAM OIDC identity providers are entities in IAM that describe an external identity provider (IdP) service that supports the OpenID Connect (OIDC) standard, such as Google or Salesforce. You use an IAM OIDC identity provider when you want to establish trust between an OIDC-compatible IdP and your AWS account. This implementation uses the native CloudFormation resource and has default values for thumbprints and clientIds props that will be compatible with the eks cluster.

OpenIdConnectProvider

L2

IAM OIDC identity providers are entities in IAM that describe an external identity provider (IdP) service that supports the OpenID Connect (OIDC) standard, such as Google or Salesforce. You use an IAM OIDC identity provider when you want to establish trust between an OIDC-compatible IdP and your AWS account. This implementation has default values for thumbprints and clientIds props that will be compatible with the eks cluster

ServiceAccount

L2

Service Account.

L1 Constructs8

Direct CloudFormation resource mappings. One-to-one with CloudFormation resource types.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

L2 Constructs16
L1 Constructs8
Moduleaws-cdk-lib/aws-eks