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
Idawscc.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.
statestringThe state of the deployment.
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

NameResourceAccessible byRequired Params
create_resourcedeploymentsINSERTApplicationId, ConfigurationProfileId, DeploymentStrategyId, EnvironmentId, ConfigurationVersion, region
delete_resourcedeploymentsDELETEIdentifier, region
list_resourcesdeployments_list_onlySELECTregion
get_resourcedeploymentsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual deployment.

SELECT
region,
deployment_strategy_id,
configuration_profile_id,
environment_id,
kms_key_identifier,
description,
configuration_version,
state,
deployment_number,
application_id,
dynamic_extension_parameters,
tags
FROM awscc.appconfig.deployments
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_id }}|{{ environment_id }}|{{ deployment_number }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.appconfig.deployments (
DeploymentStrategyId,
ConfigurationProfileId,
EnvironmentId,
ConfigurationVersion,
ApplicationId,
region
)
SELECT
'{{ deployment_strategy_id }}',
'{{ configuration_profile_id }}',
'{{ environment_id }}',
'{{ configuration_version }}',
'{{ application_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.appconfig.deployments
WHERE
Identifier = '{{ application_id }}|{{ environment_id }}|{{ deployment_number }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

appconfig:GetDeployment,
appconfig:ListTagsForResource