CanaryConfigurationProperty Struct
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.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const canaryConfigurationProperty: ecs.CfnService.CanaryConfigurationProperty = {
canaryBakeTimeInMinutes: 123,
canaryPercent: 123,
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs
canary_configuration_property = ecs.CfnService.CanaryConfigurationProperty(
canary_bake_time_in_minutes=123,
canary_percent=123
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
CanaryConfigurationProperty canaryConfigurationProperty = CanaryConfigurationProperty.builder()
.canaryBakeTimeInMinutes(123)
.canaryPercent(123)
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var canaryConfigurationProperty = new CanaryConfigurationProperty {
CanaryBakeTimeInMinutes = 123,
CanaryPercent = 123
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
canaryConfigurationProperty := &CanaryConfigurationProperty{
CanaryBakeTimeInMinutes: jsii.Number(123),
CanaryPercent: jsii.Number(123),
}
Properties
canaryBakeTimeInMinutesoptionalnumbercanary_bake_time_in_minutesoptionalint | floatcanaryBakeTimeInMinutesoptionalNumberCanaryBakeTimeInMinutesoptionaldoubleCanaryBakeTimeInMinutesoptional*float64 #Valid values are 0 to 1440 minutes (24 hours). The default value is 10.
canaryPercentoptionalnumbercanary_percentoptionalint | floatcanaryPercentoptionalNumberCanaryPercentoptionaldoubleCanaryPercentoptional*float64 #Valid values are multiples of 0.1 from 0.1 to 100.0. The default value is 5.0.