Skip to main content

deployment_strategies

Creates, updates, deletes, gets or lists a deployment_strategies resource.

Overview

Namedeployment_strategies
TypeResource
Idaws.appconfig.deployment_strategies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
deployment_duration_in_minutesintegerTotal amount of time the deployment lasted.
descriptionstringThe description of the deployment strategy.
final_bake_time_in_minutesintegerThe amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no longer eligible for automatic rollback.
growth_factornumber (float)The percentage of targets that received a deployed configuration during each interval.
growth_typestringThe algorithm used to define how percentage grew over time. (LINEAR, EXPONENTIAL)
idstringThe deployment strategy ID. (pattern: <code>[a-z0-9]{4,7}</code>)
namestringThe name of the deployment strategy.
replicate_tostringSave the deployment strategy to a Systems Manager (SSM) document. (NONE, SSM_DOCUMENT)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_deployment_strategyselectdeployment_strategy_id, regionRetrieves information about a deployment strategy. A deployment strategy defines important criteria for rolling out your configuration to the designated targets. A deployment strategy includes the overall duration required, a percentage of targets to receive the deployment during each interval, an algorithm that defines how percentage grows, and bake time.
list_deployment_strategiesselectregionmax_results, next_tokenLists deployment strategies.
create_deployment_strategyinsertregion, DeploymentDurationInMinutes, GrowthFactorCreates a deployment strategy that defines important criteria for rolling out your configuration to the designated targets. A deployment strategy includes the overall duration required, a percentage of targets to receive the deployment during each interval, an algorithm that defines how percentage grows, and bake time.
update_deployment_strategyupdatedeployment_strategy_id, regionUpdates a deployment strategy.
delete_deployment_strategydeletedeployment_strategy_id, regionDeletes a deployment strategy.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_strategy_idstringThe ID of the deployment strategy you want to delete.
regionstringAWS region (default: us-east-1)
max_resultsintegerThe maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
next_tokenstringA token to start the list. Use this token to get the next set of results.

SELECT examples

Retrieves information about a deployment strategy. A deployment strategy defines important criteria for rolling out your configuration to the designated targets. A deployment strategy includes the overall duration required, a percentage of targets to receive the deployment during each interval, an algorithm that defines how percentage grows, and bake time.

SELECT
deployment_duration_in_minutes,
description,
final_bake_time_in_minutes,
growth_factor,
growth_type,
id,
name,
replicate_to
FROM aws.appconfig.deployment_strategies
WHERE deployment_strategy_id = '{{ deployment_strategy_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a deployment strategy that defines important criteria for rolling out your configuration to the designated targets. A deployment strategy includes the overall duration required, a percentage of targets to receive the deployment during each interval, an algorithm that defines how percentage grows, and bake time.

INSERT INTO aws.appconfig.deployment_strategies (
Name,
Description,
DeploymentDurationInMinutes,
FinalBakeTimeInMinutes,
GrowthFactor,
GrowthType,
ReplicateTo,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
{{ DeploymentDurationInMinutes }} /* required */,
{{ FinalBakeTimeInMinutes }},
{{ GrowthFactor }} /* required */,
'{{ GrowthType }}',
'{{ ReplicateTo }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
deployment_duration_in_minutes,
description,
final_bake_time_in_minutes,
growth_factor,
growth_type,
id,
name,
replicate_to
;

UPDATE examples

Updates a deployment strategy.

UPDATE aws.appconfig.deployment_strategies
SET
Description = '{{ Description }}',
DeploymentDurationInMinutes = {{ DeploymentDurationInMinutes }},
FinalBakeTimeInMinutes = {{ FinalBakeTimeInMinutes }},
GrowthFactor = {{ GrowthFactor }},
GrowthType = '{{ GrowthType }}'
WHERE
deployment_strategy_id = '{{ deployment_strategy_id }}' --required
AND region = '{{ region }}' --required
RETURNING
deployment_duration_in_minutes,
description,
final_bake_time_in_minutes,
growth_factor,
growth_type,
id,
name,
replicate_to;

DELETE examples

Deletes a deployment strategy.

DELETE FROM aws.appconfig.deployment_strategies
WHERE deployment_strategy_id = '{{ deployment_strategy_id }}' --required
AND region = '{{ region }}' --required
;