BottlerocketEcsVariant

class aws_cdk.aws_ecs.BottlerocketEcsVariant(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Amazon ECS variant.

ExampleMetadata:

infused

Example:

# cluster: ecs.Cluster


cluster.add_capacity("bottlerocket-asg",
    instance_type=ec2.InstanceType("p3.2xlarge"),
    machine_image=ecs.BottleRocketImage(
        variant=ecs.BottlerocketEcsVariant.AWS_ECS_2_NVIDIA
    )
)

Attributes

AWS_ECS_1

aws-ecs-1 variant.

AWS_ECS_1_NVIDIA

aws-ecs-1-nvidia variant.

AWS_ECS_2

aws-ecs-2 variant.

AWS_ECS_2_NVIDIA

aws-ecs-2-nvidia variant.