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:
# 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
- type
The deployment controller type to use.
- Default:
DeploymentControllerType.ECS