Skip to content

rnadjqaim/ecs-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

ECS Manager CLI Tool

Overview

Alright, so this is a CLI tool for managing ECS tasks, both for EC2 and Fargate. It’s kinda like the AWS ECS CLI, but with some extra features. You can list tasks, run and stop them, and even migrate tasks between EC2 and Fargate. If you're using ECS for these, this tool will hopefully make your life a bit easier.

##K ey Features: List tasks similar to kubectl get pods (if you’ve used Kubernetes, you’ll get it). You can run tasks, stop them, or even pause them (though technically you stop them and start again later). Oh, and you can migrate tasks between EC2 and Fargate seamlessly.

Commands

Here are some of the basic commands. They’re simple, but they do what you need.

List tasks in a cluster:


ecs-manager get tasks --cluster my-cluster --status RUNNING
It’ll list task IDs, service names, statuses, and some other useful details.

Run a task:


ecs-manager task run --cluster my-cluster --task-definition my-task-def
Starts a new task based on the provided task definition.

Stop a task:

ecs-manager task stop --cluster my-cluster --task-id <task-id>
Stops the task. No questions asked.

Migrate task (between EC2 and Fargate):

ecs-manager task migrate --from ec2-cluster --to fargate-cluster --task-id <task-id>
Moves a task from EC2 to Fargate 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages