ECS / Client / continue_service_deployment

continue_service_deployment

ECS.Client.continue_service_deployment(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.continue_service_deployment(
    serviceDeploymentArn='string',
    hookId='string',
    action='ROLLBACK'|'CONTINUE'
)
Parameters:
  • serviceDeploymentArn (string) –

    [REQUIRED]

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

  • hookId (string) –

    [REQUIRED]

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

  • action (string) –

    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.

Return type:

dict

Returns:

Response Syntax

{
    'serviceDeploymentArn': 'string'
}

Response Structure

  • (dict) –

    • serviceDeploymentArn (string) –

      The ARN of the service deployment that was continued or rolled back.

Exceptions

  • ECS.Client.exceptions.AccessDeniedException

  • ECS.Client.exceptions.ServerException

  • ECS.Client.exceptions.InvalidParameterException

  • ECS.Client.exceptions.ClientException

  • ECS.Client.exceptions.ServiceDeploymentNotFoundException

  • ECS.Client.exceptions.UnsupportedFeatureException