AWS::CloudFront::ContinuousDeploymentPolicy - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Creates a continuous deployment policy that routes a subset of production traffic from a primary distribution to a staging distribution.

After you create and update a staging distribution, you can use a continuous deployment policy to incrementally move traffic to the staging distribution. This enables you to test changes to a distribution's configuration before moving all of your production traffic to the new configuration.

For more information, see Using CloudFront continuous deployment to safely test CDN configuration changes in the Amazon CloudFront Developer Guide.


To declare this entity in your Amazon CloudFormation template, use the following syntax:


{ "Type" : "AWS::CloudFront::ContinuousDeploymentPolicy", "Properties" : { "ContinuousDeploymentPolicyConfig" : ContinuousDeploymentPolicyConfig } }


Type: AWS::CloudFront::ContinuousDeploymentPolicy Properties: ContinuousDeploymentPolicyConfig: ContinuousDeploymentPolicyConfig



Contains the configuration for a continuous deployment policy.

Required: Yes

Type: ContinuousDeploymentPolicyConfig

Update requires: No interruption

Return values


When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the unique identifier for the continuous deployment policy.

For more information about using the Ref function, see Ref.


The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.


The identifier of the cotinuous deployment policy.


The date and time when the continuous deployment policy was last modified.