DeploymentControllerType
- class aws_cdk.aws_ecs.DeploymentControllerType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
The deployment controller type to use for the service.
- ExampleMetadata:
infused
Example:
# my_application: codedeploy.EcsApplication # cluster: ecs.Cluster # task_definition: ecs.FargateTaskDefinition # blue_target_group: elbv2.ITargetGroup # green_target_group: elbv2.ITargetGroup # listener: elbv2.IApplicationListener service = ecs.FargateService(self, "Service", cluster=cluster, task_definition=task_definition, deployment_controller=ecs.DeploymentController( type=ecs.DeploymentControllerType.CODE_DEPLOY ) ) codedeploy.EcsDeploymentGroup(self, "BlueGreenDG", service=service, blue_green_deployment_config=codedeploy.EcsBlueGreenDeploymentConfig( blue_target_group=blue_target_group, green_target_group=green_target_group, listener=listener ), deployment_config=codedeploy.EcsDeploymentConfig.CANARY_10PERCENT_5MINUTES )
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.