DeploymentController

class aws_cdk.aws_ecs.DeploymentController(*, type=None)

Bases: object

The deployment controller to use for the service.

Parameters:

type (Optional[DeploymentControllerType]) – The deployment controller type to use. Default: DeploymentControllerType.ECS

ExampleMetadata:

infused

Example:

# cluster: ecs.Cluster

load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateService(self, "Service",
    cluster=cluster,
    memory_limit_mi_b=1024,
    desired_count=1,
    cpu=512,
    task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
        image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
    ),
    deployment_controller=ecs.DeploymentController(
        type=ecs.DeploymentControllerType.CODE_DEPLOY
    )
)

Attributes

type

The deployment controller type to use.

Default:

DeploymentControllerType.ECS