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.
Using getContinuousDeploymentPolicy
Two invocation forms are available. The direct form accepts plain
arguments and either blocks until the result value is available, or
returns a Promise-wrapped result. The output form accepts
Input-wrapped arguments and returns an Output-wrapped result.
def get_continuous_deployment_policy(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContinuousDeploymentPolicyResult
def get_continuous_deployment_policy_output(id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetContinuousDeploymentPolicyResult]
> Note: This function is named LookupContinuousDeploymentPolicy in the Go SDK.
fn::invoke:
function: aws-native:cloudfront:getContinuousDeploymentPolicy
arguments:
# arguments dictionary
data "aws-native_cloudfront_get_continuous_deployment_policy" "name" {
# arguments
}
The following arguments are supported:
- Id
string
- The identifier of the cotinuous deployment policy.
- Id
string
- The identifier of the cotinuous deployment policy.
- id
string
- The identifier of the cotinuous deployment policy.
- id
String
- The identifier of the cotinuous deployment policy.
- id
string
- The identifier of the cotinuous deployment policy.
- id
str
- The identifier of the cotinuous deployment policy.
- id
String
- The identifier of the cotinuous deployment policy.
getContinuousDeploymentPolicy Result
The following output properties are available:
Supporting Types
ContinuousDeploymentPolicyConfig
- enabled
bool
- A Boolean that indicates whether this continuous deployment policy is enabled (in effect). When this value is
true, this policy is enabled and in effect. When this value is false, this policy is not enabled and has no effect. - staging_distribution_dns_names
list(string)
- The CloudFront domain name of the staging distribution. For example:
d111111abcdef8.cloudfront.net. -
object
- This configuration determines which HTTP requests are sent to the staging distribution. If the HTTP request contains a header and value that matches what you specify here, the request is sent to the staging distribution. Otherwise the request is sent to the primary distribution.
- single_weight_policy_config
object
- This configuration determines the percentage of HTTP requests that are sent to the staging distribution.
- traffic_config
object
- Contains the parameters for routing production traffic from your primary to staging distributions.
- type
"SingleWeight" | "SingleHeader"
- The type of traffic configuration.
- enabled
Boolean
- A Boolean that indicates whether this continuous deployment policy is enabled (in effect). When this value is
true, this policy is enabled and in effect. When this value is false, this policy is not enabled and has no effect. - stagingDistributionDnsNames
List<String>
- The CloudFront domain name of the staging distribution. For example:
d111111abcdef8.cloudfront.net. -
Property Map
- This configuration determines which HTTP requests are sent to the staging distribution. If the HTTP request contains a header and value that matches what you specify here, the request is sent to the staging distribution. Otherwise the request is sent to the primary distribution.
- singleWeightPolicyConfig
Property Map
- This configuration determines the percentage of HTTP requests that are sent to the staging distribution.
- trafficConfig
Property Map
- Contains the parameters for routing production traffic from your primary to staging distributions.
- type
"SingleWeight" | "SingleHeader"
- The type of traffic configuration.
ContinuousDeploymentPolicyConfigSingleWeightPolicyConfigProperties
ContinuousDeploymentPolicyConfigType
| Name | Value |
|---|
| SingleWeight | SingleWeight |
| SingleHeader | SingleHeader |
| Name | Value |
|---|
| ContinuousDeploymentPolicyConfigTypeSingleWeight | SingleWeight |
| ContinuousDeploymentPolicyConfigTypeSingleHeader | SingleHeader |
| Value |
|---|
SingleWeight |
SingleHeader |
| Name | Value |
|---|
| SingleWeight | SingleWeight |
| SingleHeader | SingleHeader |
| Name | Value |
|---|
| SingleWeight | SingleWeight |
| SingleHeader | SingleHeader |
| Name | Value |
|---|
| SINGLE_WEIGHT | SingleWeight |
| SINGLE_HEADER | SingleHeader |
| Value |
|---|
SingleWeight |
SingleHeader |
ContinuousDeploymentPolicySessionStickinessConfig
- IdleTtl
int
- The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
- MaximumTtl
int
- The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
- IdleTtl
int
- The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
- MaximumTtl
int
- The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
- idle_ttl
number
- The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
- maximum_ttl
number
- The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
- idleTtl
Integer
- The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
- maximumTtl
Integer
- The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
- idleTtl
number
- The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
- maximumTtl
number
- The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
- idle_ttl
int
- The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
- maximum_ttl
int
- The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
- idleTtl
Number
- The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
- maximumTtl
Number
- The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
-
string
- The request header name that you want CloudFront to send to your staging distribution. The header must contain the prefix
aws-cf-cd-. - Value
string
- The request header value.
-
string
- The request header name that you want CloudFront to send to your staging distribution. The header must contain the prefix
aws-cf-cd-. - Value
string
- The request header value.
-
string
- The request header name that you want CloudFront to send to your staging distribution. The header must contain the prefix
aws-cf-cd-. - value
string
- The request header value.
-
String
- The request header name that you want CloudFront to send to your staging distribution. The header must contain the prefix
aws-cf-cd-. - value
String
- The request header value.
-
string
- The request header name that you want CloudFront to send to your staging distribution. The header must contain the prefix
aws-cf-cd-. - value
string
- The request header value.
-
str
- The request header name that you want CloudFront to send to your staging distribution. The header must contain the prefix
aws-cf-cd-. - value
str
- The request header value.
-
String
- The request header name that you want CloudFront to send to your staging distribution. The header must contain the prefix
aws-cf-cd-. - value
String
- The request header value.
ContinuousDeploymentPolicySingleWeightConfig
- Weight
double
- The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
- SessionStickinessConfig
Pulumi.AwsNative.CloudFront.Inputs.ContinuousDeploymentPolicySessionStickinessConfig
- Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
- Weight
float64
- The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
- SessionStickinessConfig
ContinuousDeploymentPolicySessionStickinessConfig
- Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
- weight
number
- The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
- session_stickiness_config
object
- Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
- weight
Double
- The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
- sessionStickinessConfig
ContinuousDeploymentPolicySessionStickinessConfig
- Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
- weight
number
- The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
- sessionStickinessConfig
ContinuousDeploymentPolicySessionStickinessConfig
- Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
- weight
float
- The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
- session_stickiness_config
ContinuousDeploymentPolicySessionStickinessConfig
- Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
- weight
Number
- The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
- sessionStickinessConfig
Property Map
- Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
ContinuousDeploymentPolicyTrafficConfig
ContinuousDeploymentPolicyTrafficConfigType
| Name | Value |
|---|
| SingleWeight | SingleWeight |
| SingleHeader | SingleHeader |
| Name | Value |
|---|
| ContinuousDeploymentPolicyTrafficConfigTypeSingleWeight | SingleWeight |
| ContinuousDeploymentPolicyTrafficConfigTypeSingleHeader | SingleHeader |
| Value |
|---|
SingleWeight |
SingleHeader |
| Name | Value |
|---|
| SingleWeight | SingleWeight |
| SingleHeader | SingleHeader |
| Name | Value |
|---|
| SingleWeight | SingleWeight |
| SingleHeader | SingleHeader |
| Name | Value |
|---|
| SINGLE_WEIGHT | SingleWeight |
| SINGLE_HEADER | SingleHeader |
| Value |
|---|
SingleWeight |
SingleHeader |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0