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.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_eks as eks

eks_optimized_image = eks.EksOptimizedImage(
    cpu_arch=eks.CpuArch.ARM_64,
    kubernetes_version="kubernetesVersion",
    node_type=eks.NodeType.STANDARD
)

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