Difference between revisions of "Aws ecs update-service"

From wikieduonline
Jump to navigation Jump to search
 
(25 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
https://docs.aws.amazon.com/cli/latest/reference/ecs/update-service.html
 
  
* <code>[[aws ecs]] update-service</code>
+
<code>[[aws ecs]] update-service</code> [https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/update-service.html ref]
* <code>[[aws ecs]] update-service --cluster your_cluster_name --service your_service-name --force-new-deployment</code>
+
::<code>[[--foce-new-deployment]]</code>  can be used to trigger a new [[deployment]] with no [[service definition]] changes
 +
::<code>[[--desired-count]]</code>
  
<code>--foce-new-deployment</code> can be used to trigger a new [[deployment]] with no service definition changes
+
== Examples ==
 +
* [[Restart]] ECS service:
 +
<code>[[aws ecs]] update-service --cluster your_cluster_name --service [[your_service-name]] [[--force-new-deployment]]</code>
  
 +
* Stop service:
 +
::<code>[[aws ecs]] update-service --cluster your_cluster_name --service [[your_service-name]] [[--desired-count]] 0</code>
  
=== Synopsis ===
+
* Stop all services:
 +
{{stop all services from a cluster}}
 +
 
 +
* <code>[[--task-definition]]</code>
 +
 
 +
== Synopsis ==
  
 
  update-service
 
  update-service
Line 30: Line 39:
 
  [--cli-input-json <value>]
 
  [--cli-input-json <value>]
 
  [--generate-cli-skeleton <value>]
 
  [--generate-cli-skeleton <value>]
 +
 +
 +
== Errors ==
 +
* <code>[[An error occurred (InvalidParameterException) when calling the]] [[UpdateService]] operation: [[Identifier]] is for 0123456789. Your accountId is ***</code>
  
 
== Related ==
 
== Related ==
Line 36: Line 49:
 
* <code>[[aws ecs update-cluster-settings]]</code>
 
* <code>[[aws ecs update-cluster-settings]]</code>
 
* [[AWS update]]
 
* [[AWS update]]
 +
* <code>[[aws ecs list-services]]</code>
 +
* <code>[[aws ecs create-service]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{aws ecs update-service}}
 
* {{aws ecs}}
 
* {{aws ecs}}
 
* {{AWS ECS}}
 
* {{AWS ECS}}
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Latest revision as of 07:14, 27 August 2024

aws ecs update-service ref

--foce-new-deployment can be used to trigger a new deployment with no service definition changes
--desired-count

Examples[edit]

aws ecs update-service --cluster your_cluster_name --service your_service-name --force-new-deployment
  • Stop service:
aws ecs update-service --cluster your_cluster_name --service your_service-name --desired-count 0
  • Stop all services:
for SERVICES in $(aws ecs list-services --cluster your-cluster | grep YOUR-TEXT | grep . |  cut -d":" -f6- | cut -d'"' -f1 | cut -d"/" -f3); do
aws ecs update-service --cluster your-cluster --service $SERVICES --desired-count 0; done

Synopsis[edit]

update-service
[--cluster <value>]
--service <value>
[--desired-count <value>]
[--task-definition <value>]
[--capacity-provider-strategy <value>]
[--deployment-configuration <value>]
[--network-configuration <value>]
[--placement-constraints <value>]
[--placement-strategy <value>]
[--platform-version <value>]
[--force-new-deployment | --no-force-new-deployment]
[--health-check-grace-period-seconds <value>]
[--enable-execute-command | --disable-execute-command]
[--enable-ecs-managed-tags | --no-enable-ecs-managed-tags]
[--load-balancers <value>]
[--propagate-tags <value>]
[--service-registries <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]


Errors[edit]

Related[edit]

See also[edit]

Advertising: