Skip to main content

deployments

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

Overview

Namedeployments
TypeResource
Idaws.proton.deployments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the deployment. (pattern: <code>^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$</code>)
arnstringThe Amazon Resource Name (ARN) of the deployment.
completed_atstring (date-time)The date and time the deployment was completed.
component_namestringThe name of the component associated with this deployment. (pattern: <code>^[0-9A-Za-z]+[0-9A-Za-z_-]*$</code>)
created_atstring (date-time)The date and time the deployment was created.
deployment_statusstringThe status of the deployment. (IN_PROGRESS, FAILED, SUCCEEDED, DELETE_IN_PROGRESS, DELETE_FAILED, DELETE_COMPLETE, CANCELLING, CANCELLED)
deployment_status_messagestringThe deployment status message.
environment_namestringThe name of the environment associated with this deployment. (pattern: <code>^[0-9A-Za-z]+[0-9A-Za-z_-]*$</code>)
initial_stateobjectThe initial state of the target resource at the time of the deployment.
last_attempted_deployment_idstringThe ID of the last attempted deployment. (pattern: <code>^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$</code>)
last_modified_atstring (date-time)The date and time the deployment was last modified.
last_succeeded_deployment_idstringThe ID of the last successful deployment. (pattern: <code>^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$</code>)
service_instance_namestringThe name of the deployment's service instance. (pattern: <code>^[0-9A-Za-z]+[0-9A-Za-z_-]*$</code>)
service_namestringThe name of the service in this deployment. (pattern: <code>^[0-9A-Za-z]+[0-9A-Za-z_-]*$</code>)
target_arnstringThe Amazon Resource Name (ARN) of the target of the deployment. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov):[a-zA-Z0-9-]+:[a-zA-Z0-9-]:\d{12}:([\w+=,.@-]+[/:])[\w+=,.@-]+$</code>)
target_resource_created_atstring (date-time)The date and time the depoyment target was created.
target_resource_typestringThe resource type of the deployment target. It can be an environment, service, service instance, or component. (ENVIRONMENT, SERVICE_PIPELINE, SERVICE_INSTANCE, COMPONENT)
target_stateobjectThe target state of the target resource at the time of the deployment.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_deploymentselectregionGet detailed data for a deployment.
list_deploymentsselectregionList deployments. You can filter the result list by environment, service, or a single service instance.
delete_deploymentdeleteregionDelete the deployment.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Get detailed data for a deployment.

SELECT
id,
arn,
completed_at,
component_name,
created_at,
deployment_status,
deployment_status_message,
environment_name,
initial_state,
last_attempted_deployment_id,
last_modified_at,
last_succeeded_deployment_id,
service_instance_name,
service_name,
target_arn,
target_resource_created_at,
target_resource_type,
target_state
FROM aws.proton.deployments
WHERE region = '{{ region }}' -- required
;

DELETE examples

Delete the deployment.

DELETE FROM aws.proton.deployments
WHERE region = '{{ region }}' --required
;