Skip to main content

deployments

Creates, updates, deletes or gets a deployment resource or lists deployments in a region

Overview

Namedeployments
TypeResource
DescriptionResource Type definition for AWS::AppConfig::Deployment
Idaws.appconfig.deployments

Fields

NameDatatypeDescription
deployment_strategy_idstringThe deployment strategy ID.
configuration_profile_idstringThe configuration profile ID.
environment_idstringThe environment ID.
kms_key_identifierstringThe AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.
descriptionstringA description of the deployment.
configuration_versionstringThe configuration version to deploy. If deploying an AWS AppConfig hosted configuration version, you can specify either the version number or version label. For all other configurations, you must specify the version number.
deployment_numberstringThe sequence number of the deployment.
application_idstringThe application ID.
dynamic_extension_parametersarray
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::AppConfig::Deployment.

Methods

NameAccessible byRequired Params
create_resourceINSERTApplicationId, ConfigurationProfileId, DeploymentStrategyId, EnvironmentId, ConfigurationVersion, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all deployments in a region.

SELECT
region,
deployment_strategy_id,
configuration_profile_id,
environment_id,
kms_key_identifier,
description,
configuration_version,
deployment_number,
application_id,
dynamic_extension_parameters,
tags
FROM aws.appconfig.deployments
WHERE region = 'us-east-1';

Gets all properties from an individual deployment.

SELECT
region,
deployment_strategy_id,
configuration_profile_id,
environment_id,
kms_key_identifier,
description,
configuration_version,
deployment_number,
application_id,
dynamic_extension_parameters,
tags
FROM aws.appconfig.deployments
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationId>|<EnvironmentId>|<DeploymentNumber>';

INSERT example

Use the following StackQL query and manifest file to create a new deployment resource, using stack-deploy.

/*+ create */
INSERT INTO aws.appconfig.deployments (
DeploymentStrategyId,
ConfigurationProfileId,
EnvironmentId,
ConfigurationVersion,
ApplicationId,
region
)
SELECT
'{{ DeploymentStrategyId }}',
'{{ ConfigurationProfileId }}',
'{{ EnvironmentId }}',
'{{ ConfigurationVersion }}',
'{{ ApplicationId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.appconfig.deployments
WHERE data__Identifier = '<ApplicationId|EnvironmentId|DeploymentNumber>'
AND region = 'us-east-1';

Permissions

To operate on the deployments resource, the following permissions are required:

Read

appconfig:GetDeployment,
appconfig:ListTagsForResource

Create

appconfig:StartDeployment,
appconfig:GetDeployment,
appconfig:TagResource,
appconfig:ListTagsForResource,
kms:GenerateDataKey

List

appconfig:ListDeployments

Delete

appconfig:StopDeployment