EC2CTL is a CLI tool for managing AWS EC2 instances, designed as an alternative to Multipass CLI.
- Install Go (version 1.20 or higher)
- Clone this repository
- Build the project:
go build -o ec2ctl
- Move the binary to your PATH:
sudo mv ec2ctl /usr/local/bin/
# Initialize ec2ctl
ec2ctl init [--allow-local]
# List all EC2 instances
ec2ctl list
# Create a new EC2 instance
ec2ctl create [name] [--instance-type] [--ami]
# Delete an EC2 instance
ec2ctl delete [name]
# SSH into an EC2 instance
ec2ctl ssh [name]
# Clean up all EC2 instances and security groups
ec2ctl cleanThe tool uses the default AWS credentials and configuration. Make sure you have:
- AWS CLI installed and configured
- Proper IAM permissions for EC2 management
Contributions are welcome! Please open an issue or submit a pull request.
MIT