Simple CLI to interact with AWS ECS in a fast and scriptable way.
nami is a lightweight command-line tool that simplifies interaction with Amazon ECS. It allows developers and platform teams to quickly inspect ECS services and tasks, fetch logs, execute commands in running containers, and much more.
If you're tired of navigating through the AWS Console or struggling with the AWS CLI verbosity — nami is for you.
- Go 1.22 or newer
- AWS CLI configured (
aws configure) - Valid IAM permissions for ECS and CloudWatch logs
go install github.com/chnacib/nami@latestThis document provides examples of common nami commands.
List available commands:
nami -h
nami --helpnami get clustersnami get service -c [cluster]nami get task [service] -c [cluster]nami get taskdefinitionnami get revision [taskdefinition]nami get autoscaling -c [cluster]nami describe cluster [cluster]nami describe service [service] -c [cluster]nami describe task [task] -c [cluster]nami describe taskdefinition [taskdefinition]nami set autoscale [service] --cpu 40 --mem 30 --request 500 --min 1 --max 10 -c [cluster]nami set replicas [service] -d 5 -c [cluster]nami set revision [service] -r 78 -c [cluster]nami exec [task] -c [cluster] [command]nami logs task [task] -c [cluster] --limit 500
nami logs service [service] -c [cluster] --limit 500Clone the repo:
git clone https://github.com/chnacib/nami.git
cd nami
make buildRun tests:
go test ./...Format and lint:
golangci-lint runPull requests are welcome! Feel free to open issues to report bugs, request features or propose ideas.
To contribute:
- Fork the repository
- Create your feature branch
- Commit your changes
- Push and open a pull request
Made with ☕ by @chnacib