{"id":18754146,"url":"https://github.com/joeyism/py-spotme","last_synced_at":"2025-04-13T00:32:01.523Z","repository":{"id":57470296,"uuid":"113136370","full_name":"joeyism/py-spotme","owner":"joeyism","description":"A CLI tool that creates AWS spot instances on the fly","archived":false,"fork":false,"pushed_at":"2017-12-06T18:29:40.000Z","size":20,"stargazers_count":18,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T18:57:26.675Z","etag":null,"topics":["aws","aws-spot-cli","cli","commandline","ec2","ec2-instance","ec2-spot","ec2-spot-instances","spot","spot-instances"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joeyism.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-05T05:20:25.000Z","updated_at":"2024-11-13T17:35:57.000Z","dependencies_parsed_at":"2022-09-19T14:42:56.709Z","dependency_job_id":null,"html_url":"https://github.com/joeyism/py-spotme","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyism%2Fpy-spotme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyism%2Fpy-spotme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyism%2Fpy-spotme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyism%2Fpy-spotme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeyism","download_url":"https://codeload.github.com/joeyism/py-spotme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650590,"owners_count":21139670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-spot-cli","cli","commandline","ec2","ec2-instance","ec2-spot","ec2-spot-instances","spot","spot-instances"],"created_at":"2024-11-07T17:28:08.967Z","updated_at":"2025-04-13T00:32:00.339Z","avatar_url":"https://github.com/joeyism.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpotMe\nA command line tool that allows you to spin up AWS EC2 Spot Instances instantly\n\n## Background\nI do a lot of computation, but my computer is pretty crappy, so often I have to spin up ec2 spot instances to do some computation. [Spot Instances](https://aws.amazon.com/ec2/spot/) are a good resource to use AWS EC2 instances for fairly cheap, and I am very frugal. I created this tool because I didn't want to have to develop something on my commandline, go to my browser and create a spot instance, then go back to my commandline to rsync/scp everything up. This tool allows me to stay in my commandline the whole way.\n\nIf you want to know how much spot prices are for specific regions historically, you should try [spotcheck](https://github.com/joeyism/py-spotcheck)\n\n## Installation\nTo install, simply run\n\n```bash\npip3 install --user spotme\n```\n\n## Setup\nSince `spotcheck` uses boto3, you'll have to setup the same way. You can view the [docs here](http://boto3.readthedocs.io/en/latest/guide/quickstart.html)\n\nA sample `config` file that is to be placed in `~/.aws/config` is also in this repository.\n\n\n## Usage\nTo use, run\n\n```bash\nspotme\n```\n\nand a series of questions will be prompted. The questions will be of the form\n\n```\nInstance Type [t2.micro]:\nSpot Price: 0.006    \nInstance Count [1]:\nAvailability Zone [ca-central-1a]:                                          \nLaunch Image Id [ami-d29e25b6]:  \nSecurity Group, pick from:                                           \n        sg-xxxxxxxx(Some Security Group)\n        sg-yyyyyyyy(default)                                              \nDefault is [sg-xxxxxxxx]:                              \nKey-Pair Name, pick from:        \n        the-one-keypair\nDefault is [the-one-keypair]:\n```\n\nThe result is of the form\n\n\n```\nLaunching spot states sir-123abcde\n\n+---------------------+---------------+---------------+\n| Instance Id         | Public IP     | Private IP    |\n+---------------------+---------------+---------------+\n| i-05f10faefc833c643 | x.x.x.x       | x.x.x.x       |\n+---------------------+---------------+---------------+\n\n```\n\n### Repeatable Usage\nIf you don't want to enter the CLI prompt every time, you can run the CLI with the options\n\n```bash\nspotme --InstanceType=t2.micro --SpotPrice=0.006 --InstanceCount=1 --AvailabilityZone=ca-central-1a --LaunchImageId=ami-d29e25b6 --SecurityGroup=sg-123abcd --KeyName=yourkeypair\n\n```\n\n## Version\n* **1.2.0**\n    * Added Key-pair name\n\n* **1.1.0**\n    * Added customization security group\n\n* **1.0.x**\n    * Fix Bugs\n\n* **1.0.0**\n    * First publish\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeyism%2Fpy-spotme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeyism%2Fpy-spotme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeyism%2Fpy-spotme/lists"}