A command-line tool for managing AWS EC2 instances with friendly names and colorful output. Save time and money by efficiently managing your EC2 instances with simple commands. Perfect for developers who want to minimize AWS costs by easily starting and stopping instances when needed.
- 💰 Save AWS credits by quickly stopping instances when not in use
- ⏱️ Reduce time spent managing EC2 instances through AWS Console
- 🎨 Colorful terminal output for better readability
- 🔤 Support for friendly instance names
- 📋 List all instances and their states
- 🚀 Start, stop, restart, and check status of instances
- Python 3.6 or higher
- AWS CLI installed and configured
- AWS credentials with EC2 permissions
- Clone the repository:
git clone https://github.com/Muhammad-Qasim-Munir/b0xctl.git
cd b0xctl- Run the install script:
bash install.shThis will:
- Install required Python packages
- Create a symlink to
/usr/local/bin/b0xctl - Make the script globally executable
Edit config.json to add your EC2 instances:
{
"instances": {
"b0x": {
"instance_id": "i-xxxxxxxxxxxxxxxxx",
"region": "us-east-2"
},
"dev": {
"instance_id": "i-yyyyyyyyyyyyyyyyy",
"region": "us-west-2"
}
},
"default_instance": "b0x"
}instances: Object containing your EC2 instances- Key: Friendly name for the instance
- Value: Object containing
instance_idandregion
default_instance: Name of the instance to use when no instance is specified
b0xctl list# Check default instance
b0xctl status
# Check specific instance
b0xctl status b0x# Start default instance
b0xctl start
# Start specific instance
b0xctl start b0x# Stop default instance
b0xctl stop
# Stop specific instance
b0xctl stop b0x# Restart default instance
b0xctl restart
# Restart specific instance
b0xctl restart b0xThis project is licensed under the MIT License - see the LICENSE file for details.