Skip to content

EC2CTL is a experimental CLI tool for managing AWS EC2 instances, designed as an alternative to Multipass CLI.

Notifications You must be signed in to change notification settings

AgentGino/ec2ctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EC2CTL (Experimental)

EC2CTL is a CLI tool for managing AWS EC2 instances, designed as an alternative to Multipass CLI.

Installation

  1. Install Go (version 1.20 or higher)
  2. Clone this repository
  3. Build the project:
    go build -o ec2ctl
  4. Move the binary to your PATH:
    sudo mv ec2ctl /usr/local/bin/

Usage

# 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 clean

Configuration

The tool uses the default AWS credentials and configuration. Make sure you have:

  1. AWS CLI installed and configured
  2. Proper IAM permissions for EC2 management

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

MIT

About

EC2CTL is a experimental CLI tool for managing AWS EC2 instances, designed as an alternative to Multipass CLI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages