aws-lightswitch

Crates.ioaws-lightswitch
lib.rsaws-lightswitch
version0.1.2
created_at2025-05-05 18:44:55.587792+00
updated_at2025-07-11 23:12:37.06934+00
descriptionA simple CLI to start and stop EC2 instances
homepagehttps://github.com/bobby060/lightswitch
repositoryhttps://github.com/bobby060/lightswitch
max_upload_size
id1661069
size76,663
Bobby Norwood (bobby060)

documentation

README

lightswitch

A command line utility for starting/stopping Ec2 instances.

AWS CLI doesn't offer convenient ways to start/stop instances, so I created lightswitch to make it easier.

Usage

Requires that AWS CLI is installed and configured.

See here for instructions.

aws-lightswitch
    list: List all instance

    start [-i <instance_id> | -n <name>]: Start an instance
    stop [-i <instance_id> | -n <name>]: Stop an instance

    configure: set the aws region

If you run stop or start with no options, lightswitch will list all instances in current region and let you pick which to start

Install from cargo

cargo install aws-lightswitch

Build yourself

cargo build --release

After that you can run via ./aws-lightswitch

Commit count: 11

cargo fmt