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:

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.