Ecs Tasks Ops
Project description
Features
Application GUI to manage ECS resources
Use your home aws credentials from ~/.aws/credentials
Get information and attributes for each task, service or instance container
Connect through SSH to container instances or docker container
Show logs for each docker container
Show ECS events for a service
Force restart for a service
Requirements
Installation
You can install Ecs Tasks Ops via pip from PyPI:
$ pip install ecs-tasks-ops
Configuration
AWS Access
This application uses your aws credentials to connect to your ECS, so you need to configure your credentials.
Set up credentials (in e.g. ~/.aws/credentials)
[default]
aws_access_key_id = YOUR_KEY
aws_secret_access_key = YOUR_SECRET
Then, you set up a default region (in e.g. ~/.aws/config)
[default]
region=us-east-1
You can read more about it in boto3
ssh over ssm
If you want to access to containers instances or docker container through ssh, you must configurate ssm in your EC2 machines. That’s because ecs-tasks-ops use its instance id as machine identifier on ssh command. For example, ssh i-0123456789ABCDE. I use ssh-over-ssm tool to configure ssh over ssm to connect to instances.
GUI Usage
You can open the qt5 application, using the following command
ecs-tasks-ops-qt5
CLI Usage
You can open the command line with ecs-tasks-ops command. This is the help menu:
Usage: ecs-tasks-ops [OPTIONS] COMMAND [ARGS]...
Ecs Tasks Ops.
Options:
-x, --debug / --no-debug
-j, --output-json
--version Show the version and exit.
--help Show this message and exit.
Commands:
clusters Clusters information.
container-instances Container instances defined in a cluster.
containers Get docker containers defined in a cluster.
services Services defined in a cluster.
tasks Set tasks defined in a cluster.
By default, the output format is in a table, but you can get original json format with -j option. You can filter json output with jq tool:
$ ecs-tasks-ops -j clusters | jq "."
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, Ecs Tasks Ops is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from @cjolowicz’s Hypermodern Python Cookiecutter template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ecs-tasks-ops-0.3.2.tar.gz
.
File metadata
- Download URL: ecs-tasks-ops-0.3.2.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1da489bddaa11ed936a07e7b3a9aee3e1166160c7ebc4d1ad1ccabf773c9a6e |
|
MD5 | acdb567c0dc307d22d5b8aba7764a191 |
|
BLAKE2b-256 | 519f29af09697c7c4097d1e9062badd7ef84560937fbfd02997ac00241df8afc |
File details
Details for the file ecs_tasks_ops-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: ecs_tasks_ops-0.3.2-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc5833aaf03c77ed0e8d09778e8d13daff69c5e2e2171c00c1202046d9fddf07 |
|
MD5 | 09b075f6e4744a908bc2e4837973e8bf |
|
BLAKE2b-256 | 4d0a069859a7599c30805a3b872668855b9889c892c0e01c988b68fcf10083f3 |