Skip to content

Commit 0a7e031

Browse files
author
AWS
committed
Amazon EC2 Container Service Update: Add support to roll back an In_Progress ECS Service Deployment
1 parent 63959b3 commit 0a7e031

File tree

2 files changed

+64
-1
lines changed

2 files changed

+64
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon EC2 Container Service",
4+
"contributor": "",
5+
"description": "Add support to roll back an In_Progress ECS Service Deployment"
6+
}

services/ecs/src/main/resources/codegen-resources/service-2.json

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,25 @@
750750
],
751751
"documentation":"<p>Starts a new task from the specified task definition on the specified container instance or instances.</p> <note> <p>On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.</p> </note> <note> <p>Amazon Elastic Inference (EI) is no longer available to customers.</p> </note> <p>Alternatively, you can use<code>RunTask</code> to place tasks for you. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html\">Scheduling Tasks</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> <p>You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. For more infomation, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volume-types\">Amazon EBS volumes</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>"
752752
},
753+
"StopServiceDeployment":{
754+
"name":"StopServiceDeployment",
755+
"http":{
756+
"method":"POST",
757+
"requestUri":"/"
758+
},
759+
"input":{"shape":"StopServiceDeploymentRequest"},
760+
"output":{"shape":"StopServiceDeploymentResponse"},
761+
"errors":[
762+
{"shape":"AccessDeniedException"},
763+
{"shape":"ClientException"},
764+
{"shape":"ConflictException"},
765+
{"shape":"InvalidParameterException"},
766+
{"shape":"ServerException"},
767+
{"shape":"ServiceDeploymentNotFoundException"},
768+
{"shape":"UnsupportedFeatureException"}
769+
],
770+
"documentation":"<p>Stops an ongoing service deployment.</p> <p>The following stop types are avaiable:</p> <ul> <li> <p>ROLLBACK - This option rolls back the service deployment to the previous service revision. </p> <p>You can use this option even if you didn't configure the service deployment for the rollback option. </p> </li> </ul> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/stop-service-deployment.html\">Stopping Amazon ECS service deployments</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>"
771+
},
753772
"StopTask":{
754773
"name":"StopTask",
755774
"http":{
@@ -5038,7 +5057,7 @@
50385057
},
50395058
"cluster":{
50405059
"shape":"String",
5041-
"documentation":"<p>The short name or full Amazon Resource Name (ARN) of the cluster to run your task on. If you do not specify a cluster, the default cluster is assumed.</p>"
5060+
"documentation":"<p>The short name or full Amazon Resource Name (ARN) of the cluster to run your task on. If you do not specify a cluster, the default cluster is assumed.</p> <p>Each account receives a default cluster the first time you use the service, but you may also create other clusters.</p>"
50425061
},
50435062
"count":{
50445063
"shape":"BoxedInteger",
@@ -5608,6 +5627,13 @@
56085627
},
56095628
"documentation":"<p>Information about the circuit breaker used to determine when a service deployment has failed.</p> <p>The deployment circuit breaker is the rolling update mechanism that determines if the tasks reach a steady state. The deployment circuit breaker has an option that will automatically roll back a failed deployment to the last cpompleted service revision. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-circuit-breaker.html\">How the Amazon ECS deployment circuit breaker detects failures</a> in the<i> Amazon ECS Developer Guide</i>.</p>"
56105629
},
5630+
"ServiceDeploymentNotFoundException":{
5631+
"type":"structure",
5632+
"members":{
5633+
},
5634+
"documentation":"<p>The service deploy ARN that you specified in the <code>StopServiceDeployment</code> doesn't exist. You can use <code>ListServiceDeployments</code> to retrieve the service deployment ARNs.</p>",
5635+
"exception":true
5636+
},
56115637
"ServiceDeploymentRollbackMonitorsStatus":{
56125638
"type":"string",
56135639
"enum":[
@@ -5625,6 +5651,7 @@
56255651
"STOPPED",
56265652
"STOP_REQUESTED",
56275653
"IN_PROGRESS",
5654+
"ROLLBACK_REQUESTED",
56285655
"ROLLBACK_IN_PROGRESS",
56295656
"ROLLBACK_SUCCESSFUL",
56305657
"ROLLBACK_FAILED"
@@ -6039,6 +6066,36 @@
60396066
"type":"list",
60406067
"member":{"shape":"KeyValuePair"}
60416068
},
6069+
"StopServiceDeploymentRequest":{
6070+
"type":"structure",
6071+
"required":["serviceDeploymentArn"],
6072+
"members":{
6073+
"serviceDeploymentArn":{
6074+
"shape":"String",
6075+
"documentation":"<p>The ARN of the service deployment that you want to stop.</p>"
6076+
},
6077+
"stopType":{
6078+
"shape":"StopServiceDeploymentStopType",
6079+
"documentation":"<p>How you want Amazon ECS to stop the task. </p> <p>The valid values are <code>ROLLBACK</code>.</p>"
6080+
}
6081+
}
6082+
},
6083+
"StopServiceDeploymentResponse":{
6084+
"type":"structure",
6085+
"members":{
6086+
"serviceDeploymentArn":{
6087+
"shape":"String",
6088+
"documentation":"<p>The ARN of the stopped service deployment.</p>"
6089+
}
6090+
}
6091+
},
6092+
"StopServiceDeploymentStopType":{
6093+
"type":"string",
6094+
"enum":[
6095+
"ABORT",
6096+
"ROLLBACK"
6097+
]
6098+
},
60426099
"StopTaskRequest":{
60436100
"type":"structure",
60446101
"required":["task"],

0 commit comments

Comments
 (0)