EksOptimizedImage

class aws_cdk.aws_eks.EksOptimizedImage(*, cpu_arch=None, kubernetes_version=None, node_type=None)

Bases: object

Construct an Amazon Linux 2 image from the latest EKS Optimized AMI published in SSM.

Constructs a new instance of the EcsOptimizedAmi class.

Parameters
  • cpu_arch (Optional[CpuArch]) – What cpu architecture to retrieve the image for (arm64 or x86_64). Default: CpuArch.X86_64

  • kubernetes_version (Optional[str]) – The Kubernetes version to use. Default: - The latest version

  • node_type (Optional[NodeType]) – What instance type to retrieve the image for (standard or GPU-optimized). Default: NodeType.STANDARD

Methods

get_image(scope)

Return the correct image.

Parameters

scope (Construct) –

Return type

MachineImageConfig