BottleRocketImage

class aws_cdk.aws_ecs.BottleRocketImage(*, architecture=None, variant=None)

Bases: object

Construct an Bottlerocket image from the latest AMI published in SSM.

Constructs a new instance of the BottleRocketImage class.

Parameters
  • architecture (Optional[InstanceArchitecture]) – The CPU architecture. Default: - x86_64

  • variant (Optional[BottlerocketEcsVariant]) – The Amazon ECS variant to use. Only aws-ecs-1 is currently available Default: - BottlerocketEcsVariant.AWS_ECS_1

Methods

get_image(scope)

Return the correct image.

Parameters

scope (Construct) –

Return type

MachineImageConfig