
ecs — AWS CLI 1.37.22 Command Reference
Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service. It makes it easy to run, stop, and manage Docker containers. You can host your cluster on a serverless infrastructure that's managed by Amazon ECS by launching your services or tasks on Fargate.
Amazon ECS examples using AWS CLI
The following code examples show you how to perform actions and implement common scenarios by using the AWS Command Line Interface with Amazon ECS. Actions are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios.
execute-command — AWS CLI 1.37.21 Command Reference
To use the following examples, you must have the AWS CLI installed and configured. See the Getting started guide in the AWS CLI User Guide for more information. Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal's quoting rules.
Creating Amazon ECS resources using the AWS Copilot command …
The AWS Copilot command line interface (CLI) commands simplify building, releasing, and operating production-ready containerized applications on Amazon ECS from a local development environment.
describe-services — AWS CLI 1.37.15 Command Reference
For tasks that are hosted on Amazon EC2 instances, the Amazon ECS container agent must register the available logging drivers with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that …
Creating an Amazon ECS task for the EC2 launch type with the …
Learn how to set up a cluster, register a task definition, run a task, and perform other common scenarios in Amazon ECS with the AWS CLI.
create-service — AWS CLI 1.37.16 Command Reference
To use the following examples, you must have the AWS CLI installed and configured. See the Getting started guide in the AWS CLI User Guide for more information. Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal's quoting rules.
list-tasks — AWS CLI 1.37.19 Command Reference
See Using quotation marks with strings in the AWS CLI User Guide. Example 1: To list the tasks in a cluster The following list-tasks example lists all of the tasks in a cluster.
list-services — AWS CLI 1.37.20 Command Reference
To use the following examples, you must have the AWS CLI installed and configured. See the Getting started guide in the AWS CLI User Guide for more information. Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal's quoting rules.
update-service — AWS CLI 1.37.20 Command Reference
See Using quotation marks with strings in the AWS CLI User Guide. Example 1: To change the task definition used in a service The following update-service example updates the my-http-service service to use the amazon-ecs-sample task definition.