interface CanaryConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ECS.Mixins.CfnServicePropsMixin.CanaryConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsecs/mixins#CfnServicePropsMixin_CanaryConfigurationProperty |
Java | software.amazon.awscdk.mixins.preview.services.ecs.mixins.CfnServicePropsMixin.CanaryConfigurationProperty |
Python | aws_cdk.mixins_preview.aws_ecs.mixins.CfnServicePropsMixin.CanaryConfigurationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ecs » mixins » CfnServicePropsMixin » CanaryConfigurationProperty |
Configuration for a canary deployment strategy that shifts a fixed percentage of traffic to the new service revision, waits for a specified bake time, then shifts the remaining traffic.
The following validation applies only to Canary deployments created through CloudFormation . CloudFormation operations time out after 36 hours. Canary deployments can approach this limit because of their extended duration. This can cause CloudFormation to roll back the deployment. To prevent timeout-related rollbacks, CloudFormation rejects deployments when the calculated deployment time exceeds 33 hours based on your template configuration:
BakeTimeInMinutes + CanaryBakeTimeInMinutes
Additional backend processes (such as task scaling and running lifecycle hooks) can extend deployment time beyond these calculations. Even deployments under the 33-hour threshold might still time out if these processes cause the total duration to exceed 36 hours.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as ecs_mixins } from '@aws-cdk/mixins-preview/aws-ecs';
const canaryConfigurationProperty: ecs_mixins.CfnServicePropsMixin.CanaryConfigurationProperty = {
canaryBakeTimeInMinutes: 123,
canaryPercent: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| canary | number | The amount of time in minutes to wait during the canary phase before shifting the remaining production traffic to the new service revision. |
| canary | number | The percentage of production traffic to shift to the new service revision during the canary phase. |
canaryBakeTimeInMinutes?
Type:
number
(optional)
The amount of time in minutes to wait during the canary phase before shifting the remaining production traffic to the new service revision.
Valid values are 0 to 1440 minutes (24 hours). The default value is 10.
canaryPercent?
Type:
number
(optional)
The percentage of production traffic to shift to the new service revision during the canary phase.
Valid values are multiples of 0.1 from 0.1 to 100.0. The default value is 5.0.

.NET
Go
Java
Python
TypeScript