interface EcsDeploymentGroupProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CodeDeploy.EcsDeploymentGroupProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#EcsDeploymentGroupProps |
Java | software.amazon.awscdk.services.codedeploy.EcsDeploymentGroupProps |
Python | aws_cdk.aws_codedeploy.EcsDeploymentGroupProps |
TypeScript (source) | aws-cdk-lib » aws_codedeploy » EcsDeploymentGroupProps |
Construction properties for EcsDeploymentGroup.
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 |
|---|---|---|
| blue | Ecs | The configuration options for blue-green ECS deployments. |
| service | IBase | The ECS service to deploy with this Deployment Group. |
| alarms? | IAlarm[] | The CloudWatch alarms associated with this Deployment Group. |
| application? | IEcs | The reference to the CodeDeploy ECS Application that this Deployment Group belongs to. |
| auto | Auto | The auto-rollback configuration for this Deployment Group. |
| deployment | IEcs | The Deployment Configuration this Deployment Group uses. |
| deployment | string | The physical, human-readable name of the CodeDeploy Deployment Group. |
| ignore | boolean | Whether to skip the step of checking CloudWatch alarms during the deployment process. |
| ignore | boolean | Whether to continue a deployment even if fetching the alarm status from CloudWatch failed. |
| role? | IRole | The service Role of this Deployment Group. |
blueGreenDeploymentConfig
Type:
Ecs
The configuration options for blue-green ECS deployments.
service
Type:
IBase
The ECS service to deploy with this Deployment Group.
alarms?
Type:
IAlarm[]
(optional, default: [])
The CloudWatch alarms associated with this Deployment Group.
CodeDeploy will stop (and optionally roll back) a deployment if during it any of the alarms trigger.
Alarms can also be added after the Deployment Group is created using the #addAlarm method.
application?
Type:
IEcs
(optional, default: One will be created for you.)
The reference to the CodeDeploy ECS Application that this Deployment Group belongs to.
autoRollback?
Type:
Auto
(optional, default: default AutoRollbackConfig.)
The auto-rollback configuration for this Deployment Group.
deploymentConfig?
Type:
IEcs
(optional, default: EcsDeploymentConfig.ALL_AT_ONCE)
The Deployment Configuration this Deployment Group uses.
deploymentGroupName?
Type:
string
(optional, default: An auto-generated name will be used.)
The physical, human-readable name of the CodeDeploy Deployment Group.
ignoreAlarmConfiguration?
Type:
boolean
(optional, default: false)
Whether to skip the step of checking CloudWatch alarms during the deployment process.
ignorePollAlarmsFailure?
Type:
boolean
(optional, default: false)
Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.
role?
Type:
IRole
(optional, default: A new Role will be created.)
The service Role of this Deployment Group.

.NET
Go
Java
Python
TypeScript (