AWS::StepFunctions::StateMachineAlias DeploymentPreference - AWS CloudFormation (original) (raw)
Enables gradual state machine deployments. CloudFormation automatically shifts traffic from the version the alias currently points to, to a new state machine version that you specify.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{
"Alarms" : [ String, ... ],
"Interval" : Integer,
"Percentage" : Integer,
"StateMachineVersionArn" : String,
"Type" : String
}
YAML
Alarms:
- String
Interval: Integer
Percentage: Integer
StateMachineVersionArn: String
Type: String
Properties
Alarms
A list of Amazon CloudWatch alarm names to be monitored during the deployment. The deployment fails and rolls back if any of these alarms go into the ALARM
state.
Important
Amazon CloudWatch considers nonexistent alarms to have an OK
state. If you provide an invalid alarm name or provide the ARN of an alarm instead of its name, your deployment may not roll back correctly.
Required: No
Type: Array of String
Minimum: 1 | 1
Maximum: 256 | 100
Update requires: No interruption
Interval
The time in minutes between each traffic shifting increment.
Required: No
Type: Integer
Minimum: 1
Maximum: 2100
Update requires: No interruption
Percentage
The percentage of traffic to shift to the new version in each increment.
Required: No
Type: Integer
Minimum: 1
Maximum: 99
Update requires: No interruption
StateMachineVersionArn
The Amazon Resource Name (ARN) of the AWS::StepFunctions::StateMachineVersion resource that will be the final version to which the alias points to when the traffic shifting is complete.
While performing gradual deployments, you can only provide a single state machine version ARN. To explicitly set version weights in a CloudFormation template, use RoutingConfiguration
instead.
Required: Yes
Type: String
Minimum: 1
Maximum: 2048
Update requires: No interruption
Type
The type of deployment you want to perform. You can specify one of the following types:
LINEAR
- Shifts traffic to the new version in equal increments with an equal number of minutes between each increment.
For example, if you specify the increment percent as20
with an interval of600
minutes, this deployment increases traffic by 20 percent every 600 minutes until the new version receives 100 percent of the traffic. This deployment immediately rolls back the new version if any CloudWatch alarms are triggered.ALL_AT_ONCE
- Shifts 100 percent of traffic to the new version immediately. CloudFormation monitors the new version and rolls it back automatically to the previous version if any CloudWatch alarms are triggered.CANARY
- Shifts traffic in two increments.
In the first increment, a small percentage of traffic, for example, 10 percent is shifted to the new version. In the second increment, before a specified time interval in seconds gets over, the remaining traffic is shifted to the new version. The shift to the new version for the remaining traffic takes place only if no CloudWatch alarms are triggered during the specified time interval.
Required: Yes
Type: String
Allowed values: LINEAR | ALL_AT_ONCE | CANARY
Update requires: No interruption
AWS::StepFunctions::StateMachineAlias
RoutingConfigurationVersion
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.