Skip to content

Continue Service Deployment

ecs_continue_service_deployment R Documentation

Continues or rolls back an Amazon ECS service deployment that is paused at a lifecycle hook

Description

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 describe_service_deployments and inspect the lifecycleHookDetails field.

Usage

ecs_continue_service_deployment(serviceDeploymentArn, hookId, action)

Arguments

serviceDeploymentArn

[required] The ARN of the service deployment to continue or roll back.

hookId

[required] The ID of the paused lifecycle hook to act on. You can find the hookId by calling describe_service_deployments and inspecting the lifecycleHookDetails field of the service deployment.

action

The action to take on the paused lifecycle hook. Valid values are:

  • CONTINUE - Proceeds the deployment to the next lifecycle stage.

  • ROLLBACK - Rolls back the deployment to the previous service revision.

If no value is specified, the default action is CONTINUE.

Value

A list with the following syntax:

list(
  serviceDeploymentArn = "string"
)

Request syntax

svc$continue_service_deployment(
  serviceDeploymentArn = "string",
  hookId = "string",
  action = "ROLLBACK"|"CONTINUE"
)