You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* lifecycle regardless of its health status. For tasks that are part of a service, if the
5071
5071
* task reports as unhealthy then the task will be stopped and the service scheduler will
5072
5072
* replace it.</p>
5073
+
* <p>When a container health check fails for a task that is part of a service, the following process occurs:</p>
5074
+
* <ol>
5075
+
* <li>
5076
+
* <p>The task is marked as <code>UNHEALTHY</code>.</p>
5077
+
* </li>
5078
+
* <li>
5079
+
* <p>The unhealthy task will be stopped, and during the stopping process, it will go through the following states:</p>
5080
+
* <ul>
5081
+
* <li>
5082
+
* <p>
5083
+
* <code>DEACTIVATING</code> - In this state, Amazon ECS performs additional steps before stopping the
5084
+
* task. For example, for tasks that are part of services configured to use
5085
+
* Elastic Load Balancing target groups, target groups will be deregistered
5086
+
* in this state.</p>
5087
+
* </li>
5088
+
* <li>
5089
+
* <p>
5090
+
* <code>STOPPING</code> - The task is in the process of being stopped.</p>
5091
+
* </li>
5092
+
* <li>
5093
+
* <p>
5094
+
* <code>DEPROVISIONING</code> - Resources associated with the task are being cleaned up.</p>
5095
+
* </li>
5096
+
* <li>
5097
+
* <p>
5098
+
* <code>STOPPED</code> - The task has been completely stopped.</p>
5099
+
* </li>
5100
+
* </ul>
5101
+
* </li>
5102
+
* <li>
5103
+
* <p>After the old task stops, a new task will be launched to ensure service operation, and the new task will go through the following lifecycle:</p>
5104
+
* <ul>
5105
+
* <li>
5106
+
* <p>
5107
+
* <code>PROVISIONING</code> - Resources required for the task are being provisioned.</p>
5108
+
* </li>
5109
+
* <li>
5110
+
* <p>
5111
+
* <code>PENDING</code> - The task is waiting to be placed on a container instance.</p>
5112
+
* </li>
5113
+
* <li>
5114
+
* <p>
5115
+
* <code>ACTIVATING</code> - In this state, Amazon ECS pulls container images, creates containers,
5116
+
* configures task networking, registers load balancer target groups, and
5117
+
* configures service discovery status.</p>
5118
+
* </li>
5119
+
* <li>
5120
+
* <p>
5121
+
* <code>RUNNING</code> - The task is running and performing its work.</p>
5122
+
* </li>
5123
+
* </ul>
5124
+
* </li>
5125
+
* </ol>
5126
+
* <p>For more detailed information about task lifecycle states, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-lifecycle-explanation.html">Task lifecycle</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
5073
5127
* <p>The following are notes about container health check support:</p>
* <p>The capacity provider strategy to update the service to use.</p>
438
-
* <p>if the service uses the default capacity provider strategy for the cluster, the
439
-
* service can be updated to use one or more capacity providers as opposed to the default
440
-
* capacity provider strategy. However, when a service is using a capacity provider
441
-
* strategy that's not the default capacity provider strategy, the service can't be updated
442
-
* to use the cluster's default capacity provider strategy.</p>
443
-
* <p>A capacity provider strategy consists of one or more capacity providers along with the
444
-
* <code>base</code> and <code>weight</code> to assign to them. A capacity provider
445
-
* must be associated with the cluster to be used in a capacity provider strategy. The
446
-
* <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders</a> API is used to associate a capacity provider
447
-
* with a cluster. Only capacity providers with an <code>ACTIVE</code> or
448
-
* <code>UPDATING</code> status can be used.</p>
449
-
* <p>If specifying a capacity provider that uses an Auto Scaling group, the capacity
450
-
* provider must already be created. New capacity providers can be created with the <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateClusterCapacityProvider.html">CreateClusterCapacityProvider</a> API operation.</p>
451
-
* <p>To use a Fargate capacity provider, specify either the <code>FARGATE</code> or
452
-
* <code>FARGATE_SPOT</code> capacity providers. The Fargate capacity providers are
453
-
* available to all accounts and only need to be associated with a cluster to be
454
-
* used.</p>
455
-
* <p>The <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders</a>API operation is used to update the list of
456
-
* available capacity providers for a cluster after the cluster is created.</p>
457
-
* <p></p>
438
+
* <p>The details of a capacity provider strategy. You can set a capacity provider when you
439
+
* create a cluster, run a task, or update a service.</p>
440
+
* <p>When you use Fargate, the capacity providers are <code>FARGATE</code> or
441
+
* <code>FARGATE_SPOT</code>.</p>
442
+
* <p>When you use Amazon EC2, the capacity providers are Auto Scaling groups.</p>
443
+
* <p>You can change capacity providers for rolling deployments and blue/green
444
+
* deployments.</p>
445
+
* <p>The following list provides the valid transitions:</p>
446
+
* <ul>
447
+
* <li>
448
+
* <p>Update the Fargate launch type to an EC2 capacity provider.</p>
449
+
* </li>
450
+
* <li>
451
+
* <p>Update the Amazon EC2 launch type to a Fargate capacity provider.</p>
452
+
* </li>
453
+
* <li>
454
+
* <p>Update the Fargate capacity provider to an EC2 capacity provider.</p>
455
+
* </li>
456
+
* <li>
457
+
* <p>Update the Amazon EC2 capacity provider to a Fargate capacity provider. </p>
458
+
* </li>
459
+
* <li>
460
+
* <p>Update the EC2 or Fargate capacity provider back to the launch type.</p>
461
+
* <p>Pass an empty list in the <code>capacityProvider</code> parameter.</p>
462
+
* </li>
463
+
* </ul>
464
+
* <p>For information about Amazon Web Services CDK considerations, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-parameters.html">Amazon Web Services CDK considerations</a>.</p>
0 commit comments