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.
For more information, see Continuing Amazon ECS service deployments in the Amazon Elastic Container Service Developer Guide.
Usage¶
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
hookIdby callingdescribe_service_deploymentsand inspecting thelifecycleHookDetailsfield of the service deployment. -
actionThe 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: