diff --git a/knowledge base/cloud computing/aws/ecs.md b/knowledge base/cloud computing/aws/ecs.md index e40b95c..aa477ca 100644 --- a/knowledge base/cloud computing/aws/ecs.md +++ b/knowledge base/cloud computing/aws/ecs.md @@ -77,7 +77,7 @@ aws ecs list-services --cluster 'clusterName' # Scale services. aws ecs update-service --cluster 'clusterName' --service 'serviceName' --desired-count '0' -aws ecs update-service --cluster 'clusterName' --service 'serviceName' --desired-count '10' +aws ecs update-service --cluster 'clusterName' --service 'serviceName' --desired-count '10' --no-cli-pager # Wait for services to be running. aws ecs wait services-stable --cluster 'clusterName' --services 'serviceName' … @@ -155,8 +155,8 @@ while [[ $(aws ecs list-tasks --query 'taskArns' --output 'text' --cluster 'test # Restart tasks. # No real way to do that, just stop the tasks and new ones will be eventually started in their place. # To mimic a blue-green deployment, scale the service up by doubling its tasks, then down again to the normal amount. -aws ecs update-service --cluster 'someCluster' --service 'someService' --desired-count '0' \ -&& aws ecs update-service --cluster 'someCluster' --service 'someService' --desired-count '1' +aws ecs update-service --cluster 'someCluster' --service 'someService' --desired-count '0' --no-cli-pager \ +&& aws ecs update-service --cluster 'someCluster' --service 'someService' --desired-count '1' --no-cli-pager ``` diff --git a/snippets/aws/ecs.fish b/snippets/aws/ecs.fish index 1b04bd5..3e3fcde 100644 --- a/snippets/aws/ecs.fish +++ b/snippets/aws/ecs.fish @@ -38,7 +38,7 @@ aws ecs wait services-stable --cluster 'stg' --services 'grafana' aws ecs update-service --cluster 'stg' --service 'grafana' --enable-execute-command --force-new-deployment # Scale services -aws ecs update-service --cluster 'stg' --service 'grafana' --desired-count '3' +aws ecs update-service --cluster 'stg' --service 'grafana' --desired-count '3' --no-cli-pager # Check tasks' attributes aws ecs describe-tasks --cluster 'staging' --tasks 'ef6260ed8aab49cf926667ab0c52c313' --output 'yaml' \