iTranslated by AI
The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
☕️
ecspresso Advent Calendar 2020 Day 15 - create
This is Day 15 of the ecspresso Advent calendar, which summarizes how to use ecspresso, a deployment tool for Amazon ECS.
create command to create an ECS service
ecspresso create registers a task definition and creates a new ECS service that uses that task definition.
Options for the create command
usage: ecspresso create [<flags>]
create service
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
--config=CONFIG config file
--debug enable debug log
--color enalble colored output
--dry-run dry-run
--tasks=-1 desired count of tasks
--no-wait exit ecspresso immediately after just created without waiting for service stable
--tasks
Specifies the number of tasks to run at the time the service is created.
The number of tasks is determined in the following order of priority, similar to the deploy command.
- The value of
--tasksspecified as an option - The value of
desiredCountexisting in the service definition
This value is also applied to the service during deployment. If you want to control the number of tasks externally by setting up auto-scaling, etc., please delete thedesiredCountitem altogether.
--no-wait
Exits immediately after creating the service without waiting for the tasks to start.
Day 16 will explain how to delete an ECS service.
Discussion