Skip to main content

service_deployments

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

Overview

Nameservice_deployments
TypeResource
Idaws.ecs.service_deployments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
failuresarrayAny failures associated with the call. If you decsribe a deployment with a service revision created before October 25, 2024, the call fails. The failure includes the service revision ARN and the reason set to MISSING.
service_deploymentsarrayThe list of service deployments described.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_service_deploymentsselectregionDescribes one or more of your service deployments. A service deployment happens when you release a software update for the service. For more information, see View service history using Amazon ECS service deployments.
list_service_deploymentsselectregionThis operation lists all the service deployments that meet the specified filter criteria. A service deployment happens when you release a software update for the service. You route traffic from the running service revisions to the new service revison and control the number of running tasks. This API returns the values that you use for the request parameters in DescribeServiceRevisions.
continue_service_deploymentexecregion, serviceDeploymentArn, hookIdContinues or rolls back an Amazon ECS service deployment that is paused at a lifecycle hook. When a service deployment reaches a lifecycle stage that has a PAUSE hook configured, the deployment pauses and waits for an explicit action. Use this API to either continue the deployment to the next stage or roll back to the previous service revision. To find the hookId of the paused hook, call DescribeServiceDeployments and inspect the lifecycleHookDetails field. For more information, see Continuing Amazon ECS service deployments in the Amazon Elastic Container Service Developer Guide.

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

Describes one or more of your service deployments. A service deployment happens when you release a software update for the service. For more information, see View service history using Amazon ECS service deployments.

SELECT
failures,
service_deployments
FROM aws.ecs.service_deployments
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Continues or rolls back an Amazon ECS service deployment that is paused at a lifecycle hook. When a service deployment reaches a lifecycle stage that has a PAUSE hook configured, the deployment pauses and waits for an explicit action. Use this API to either continue the deployment to the next stage or roll back to the previous service revision. To find the hookId of the paused hook, call DescribeServiceDeployments and inspect the lifecycleHookDetails field. For more information, see Continuing Amazon ECS service deployments in the Amazon Elastic Container Service Developer Guide.

EXEC aws.ecs.service_deployments.continue_service_deployment
@region='{{ region }}' --required
@@json=
'{
"serviceDeploymentArn": "{{ serviceDeploymentArn }}",
"hookId": "{{ hookId }}",
"action": "{{ action }}"
}'
;