LinearConfigurationProperty Struct
Configuration for a linear deployment strategy that shifts production traffic in equal percentage increments with configurable wait times between each step until 100 percent of traffic is shifted to the new service revision.
The following validation applies only to Linear deployments created through CloudFormation . CloudFormation operations time out after 36 hours. Linear 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 + (StepBakeTimeInMinutes × Number of deployment steps)
Where the number of deployment steps is calculated as follows:
- If
StepPercentevenly divides by 100 : The number of deployment steps equals(100 ÷ StepPercent) - 1 - Otherwise : The number of deployment steps equals the floor of
100 ÷ StepPercent. For example, ifStepPercentis 11, the number of deployment steps is 9 (not 9.1).
This calculation reflects that CloudFormation doesn't apply the step bake time after the final traffic shift reaches 100%. For example, with a StepPercent of 50%, there are actually two traffic shifts, but only one deployment step is counted for validation purposes because the bake time is applied only after the first 50% shift, not after reaching 100%.
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 linearConfigurationProperty: ecs.CfnService.LinearConfigurationProperty = {
stepBakeTimeInMinutes: 123,
stepPercent: 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
linear_configuration_property = ecs.CfnService.LinearConfigurationProperty(
step_bake_time_in_minutes=123,
step_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.*;
LinearConfigurationProperty linearConfigurationProperty = LinearConfigurationProperty.builder()
.stepBakeTimeInMinutes(123)
.stepPercent(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 linearConfigurationProperty = new LinearConfigurationProperty {
StepBakeTimeInMinutes = 123,
StepPercent = 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"
linearConfigurationProperty := &LinearConfigurationProperty{
StepBakeTimeInMinutes: jsii.Number(123),
StepPercent: jsii.Number(123),
}
Properties
stepBakeTimeInMinutesoptionalnumberstep_bake_time_in_minutesoptionalint | floatstepBakeTimeInMinutesoptionalNumberStepBakeTimeInMinutesoptionaldoubleStepBakeTimeInMinutesoptional*float64 #Valid values are 0 to 1440 minutes (24 hours). The default value is 6. This bake time is not applied after reaching 100 percent traffic.
stepPercentoptionalnumberstep_percentoptionalint | floatstepPercentoptionalNumberStepPercentoptionaldoubleStepPercentoptional*float64 #Valid values are multiples of 0.1 from 3.0 to 100.0. The default value is 10.0.