Skip to main content

Yet Another ECS CTL tool

Python 3.7 Python 3.8

PyPI version

pip install ya-ecs-ctl

Adds binary:

ecs

Usage: ecs [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  ci       Interact with Container Instances
  cluster  Interact with Cluster
  ec2      Interact with EC2 Instances
  repo     Interact with (Container) Repos
  service  Interact with Service
  task     Interact with Task


Getting Started

Ensure aws cli tool works and you have run aws configure. Uses boto3 and assumes the following ENVs are set:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY

Your default region should be set. Verify it with

cat ~/.aws/config 

[default]
region=us-west-1

Run

ecs service ls

It will first ask you to select a default cluster. Currently this tool does not have a command to create one.

This preference is saved here:

cat .settings.conf 

{
    "cluster": "Dev-Apps"
}

Lets try that again..

ecs service ls

Cluster: Dev-Apps

+------------------------+---------------------------+-------------+---------+---------+---------+--------+--------------+----------------------------+
| Service Name           | Task Def                  | Launch Type | Desired | Running | Pending | Status | Created      | Deployments (des/pend/run) |
+------------------------+---------------------------+-------------+---------+---------+---------+--------+--------------+----------------------------+
| my-app                 | my-app:122                | EC2         | 2       | 2       | 0       | ACTIVE | 4 months ago | 2/0/2 6 days ago           |
| another-app            | another-app:1             | EC2         | 2       | 2       | 0       | ACTIVE | a day ago    | 2/0/2 a day ago            |
+------------------------+---------------------------+-------------+---------+---------+---------+--------+--------------+----------------------------+

Service Commands

Usage: ecs service [OPTIONS] COMMAND [ARGS]...

  Interact with Service

Options:
  --help  Show this message and exit.

Commands:
  create    Create Service
  delete    Delete Service
  describe  Describe Service
  ls        List Services
  redeploy  Force redeployment of a Service
  scale     Scale Service
  tasks     List Tasks for Service
  update    Update Service

See "examples" folder for config structure of services. Support is provided for FARGATE, Scheduled Tasks, etc.

Alternatives..

https://github.com/diegoacuna/ecs-ctl

Manage Amazon ECS like with kubectl.

https://github.com/labd/ecs-deplojo/

Deployment tool for Amazon ECS.

https://github.com/fabfuel/ecs-deploy

ecs-deploy simplifies deployments on Amazon ECS by providing a convinience CLI tool for complex actions, which are executed pretty often.

https://github.com/cuttlesoft/ecs-deploy.py

Python script to instigate an automatic blue/green deployment using the Task Definition and Service entities in Amazon's ECS.

https://github.com/boroivanov/ecs-tools

ECS Tools cli aims to make deploying to ECS Fargate easier. It also provides an easy way to scale and update environment variables.

Release files for ya-ecs-ctl 0.3.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ya-ecs-ctl 0.3.9
File Size Uploaded
ya-ecs-ctl-0.3.9.tar.gz 17.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ya-ecs-ctl 0.3.9
File Interpreter ABI Platform
ya_ecs_ctl-0.3.9-py3-none-any.whl Python 3 none any Details

Total release size: 34.4 kB

Release files / ya-ecs-ctl-0.3.9.tar.gz

Download URL ya-ecs-ctl-0.3.9.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
87ffce951c994296aa4242334a488715d370f76e681b107aba12f426067bae65
BLAKE2b-256 checksum
How to use checksums
e82633d934de69874fc218aa1ab2a5f8664d8343089b212298576d5dbb6129f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / ya_ecs_ctl-0.3.9-py3-none-any.whl

Download URL ya_ecs_ctl-0.3.9-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
110b402851c53ac6a6e982159ae763eff60419f2eaf81004fb05530024a2d09d
BLAKE2b-256 checksum
How to use checksums
ae2b263d60e7e777b9ddc8d4209c0c8b1557c1a96c726b276815fb75b82a4cdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.3.9 This release

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page