interface DeploymentController
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.DeploymentController |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#DeploymentController |
Java | software.amazon.awscdk.services.ecs.DeploymentController |
Python | aws_cdk.aws_ecs.DeploymentController |
TypeScript (source) | aws-cdk-lib » aws_ecs » DeploymentController |
The deployment controller to use for the service.
Example
declare const myApplication: codedeploy.EcsApplication;
declare const cluster: ecs.Cluster;
declare const taskDefinition: ecs.FargateTaskDefinition;
declare const blueTargetGroup: elbv2.ITargetGroup;
declare const greenTargetGroup: elbv2.ITargetGroup;
declare const listener: elbv2.IApplicationListener;
const service = new ecs.FargateService(this, 'Service', {
cluster,
taskDefinition,
deploymentController: {
type: ecs.DeploymentControllerType.CODE_DEPLOY,
},
});
new codedeploy.EcsDeploymentGroup(this, 'BlueGreenDG', {
service,
blueGreenDeploymentConfig: {
blueTargetGroup,
greenTargetGroup,
listener,
},
deploymentConfig: codedeploy.EcsDeploymentConfig.CANARY_10PERCENT_5MINUTES,
});
Properties
Name | Type | Description |
---|---|---|
type? | Deployment | The deployment controller type to use. |
type?
Type:
Deployment
(optional, default: DeploymentControllerType.ECS)
The deployment controller type to use.