Scripts to quickly request and manage EC2 spot instances from the command line.
aws-list
: List EC2 instances currently running.aws-request
: Request an EC2 Spot instance and SSH to it. Use the cheapest availability zone and instance type from configuration.aws-ssh
: SSH to an EC2 instance. By default connect to the first instance returned byaws-list
.aws-price
: Display the current Spot price of an instance type in an availability zone. Support glob patterns.aws-list-requests
: List Spot Fleet requests.aws-cancel-requests
: Cancel Spot Fleet requests.aws-terminate
: Terminate EC2 instances.
- If you don't already have it, install AWS CLI and configure it.
- Download the Wheel file from the latest Github Release.
- Install it using pipx or pip:
pipx install ./aws_cli_utils-*.whl
.