DeploymentControllerType

class aws_cdk.aws_ecs.DeploymentControllerType(value)

Bases: Enum

The deployment controller type to use for the service.

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

CODE_DEPLOY

The blue/green (CODE_DEPLOY) deployment type uses the blue/green deployment model powered by AWS CodeDeploy.

ECS

The rolling update (ECS) deployment type involves replacing the current running version of the container with the latest version.

EXTERNAL

The external (EXTERNAL) deployment type enables you to use any third-party deployment controller.