Difference between revisions of "Aws ecs list-services"

From wikieduonline
Jump to navigation Jump to search
Line 11: Line 11:
  
  
  [[for]] SERVICES in $(aws ecs list-services --cluster [[your-cluster]] | grep YOUR-TEXT | grep . |  cut -d":" -f6- | cut -d'"' -f1); do echo $SERVICES; done
+
Stop services:
 +
  [[for]] SERVICES in $(aws ecs list-services --cluster [[your-cluster]] | grep YOUR-TEXT | grep . |  cut -d":" -f6- | cut -d'"' -f1); do
 +
[[aws ecs update-service --cluster]] [[your-cluster]] --service $SERVICES [[--desired-count]] 0; done
  
 
== Related ==
 
== Related ==

Revision as of 10:21, 21 March 2023

Advertising: