{"id":13819869,"url":"https://github.com/jftuga/spotprice","last_synced_at":"2025-07-26T17:32:27.256Z","repository":{"id":57621415,"uuid":"250284637","full_name":"jftuga/spotprice","owner":"jftuga","description":"Quickly get AWS spot instance pricing","archived":false,"fork":false,"pushed_at":"2023-12-04T17:26:11.000Z","size":36,"stargazers_count":33,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-19T19:43:41.669Z","etag":null,"topics":["aws","command-line","golang","pricing","spotprice"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jftuga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-03-26T14:42:04.000Z","updated_at":"2024-11-01T15:16:02.000Z","dependencies_parsed_at":"2024-01-13T15:55:37.203Z","dependency_job_id":"1ac28bde-b42e-44cb-90cd-1e5962cb6266","html_url":"https://github.com/jftuga/spotprice","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fspotprice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fspotprice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fspotprice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fspotprice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jftuga","download_url":"https://codeload.github.com/jftuga/spotprice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227700391,"owners_count":17806365,"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","command-line","golang","pricing","spotprice"],"created_at":"2024-08-04T08:00:54.252Z","updated_at":"2024-12-02T09:19:03.408Z","avatar_url":"https://github.com/jftuga.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# spotprice\nQuickly get AWS spot instance pricing\n\nThis program is similar to using `aws ec2 describe-spot-price-history` but is faster and has a few more options.\n\nThe [Releases Page](https://github.com/jftuga/spotprice/releases) contains binaries for Windows, MacOS, Linux and FreeBSD.\n\n## Usage\n\n```\nspotprice.exe Quickly get AWS spot instance pricing across multiple regions\n\nusage: .\\spotprice.exe [options]\n       (required EC2 IAM Permissions: DescribeRegions, DescribeAvailabilityZones, DescribeSpotPriceHistory)\n\n  -I string\n        A comma-separated list of regular-expressions to match Instance Type names, eg: t2.*,c5(a\\.|n\\.|\\.)4xlarge\n  -az string\n        A comma-separated list of regular-expressions to match AZs (eg: us-*1a)\n  -inst string\n        A comma-separated list of exact Instance Type names, eg: t2.small,t3a.micro,c5.large\n  -l    List regions \u0026 instance types, then exit\n  -max float\n        Only output if spot price is less than or equal to given amount\n  -prod string\n        A comma-separated list of exact, case-sensitive Product Names (eg: Windows,win,Linux/UNIX,lin,SUSE Linux,Red Hat Enterprise Linux)\n  -prof string\n        AWS profile to use (default \"default\")\n  -reg string\n        A comma-separated list of regular-expressions to match regions, eg: us-.*-2,ap-.*east-\\d\n  -v    show program version and then exit\n```\n\n## Installation\n* macOS: `brew update; brew install jftuga/tap/spotprice`\n* Binaries for Linux, macOS and Windows are provided in the [releases](https://github.com/jftuga/spotprice/releases) section.\n\n## EC2 IAM Permissions\n* DescribeAvailabilityZones\n* DescribeRegions\n* DescribeSpotPriceHistory\n\n## Examples\n\n**Only return pricing for US and Canada regions; Windows OS, (these 4 instance types); less than or equal to $2.00; in AZs that end in either an a, b, or d (such as us-east-2b)**\n* `spotprice -reg us-,ca- -prod Windows -inst r5.8xlarge,x1.32xlarge,x1e.32xlarge,c4.8xlarge -max 2.00 -az \"(a|b|d)$\"`\n\n```\n+--------------+---------------+------------+---------+------------+\n|    REGION    |      AZ       |  INSTANCE  |  DESC   | SPOT PRICE |\n+--------------+---------------+------------+---------+------------+\n| us-east-2    | us-east-2b    | c4.8xlarge | Windows |   1.789600 |\n| us-east-2    | us-east-2a    | c4.8xlarge | Windows |   1.789600 |\n| us-east-2    | us-east-2b    | r5.8xlarge | Windows |   1.806500 |\n| us-east-2    | us-east-2a    | r5.8xlarge | Windows |   1.806500 |\n| ca-central-1 | ca-central-1d | r5.8xlarge | Windows |   1.980800 |\n| ca-central-1 | ca-central-1b | r5.8xlarge | Windows |   1.980800 |\n| ca-central-1 | ca-central-1a | r5.8xlarge | Windows |   1.980800 |\n| us-west-2    | us-west-2b    | c4.8xlarge | Windows |   1.990600 |\n| us-west-2    | us-west-2a    | c4.8xlarge | Windows |   1.990600 |\n| us-east-1    | us-east-1d    | c4.8xlarge | Windows |   1.993500 |\n| us-east-1    | us-east-1b    | c4.8xlarge | Windows |   1.993500 |\n| us-east-1    | us-east-1a    | c4.8xlarge | Windows |   1.993500 |\n+--------------+---------------+------------+---------+------------+\n```\n\n**Only return pricing for all US regions with instance types of either t2.micro or t2.small**\n* `spotprice -reg us -inst t2.micro,t2.small`\n\n```\n+-----------+------------+----------+------------+------------+\n|  REGION   |     AZ     | INSTANCE |    DESC    | SPOT PRICE |\n+-----------+------------+----------+------------+------------+\n| us-west-2 | us-west-2c | t2.micro | Linux/UNIX |   0.003500 |\n| us-west-2 | us-west-2b | t2.micro | Linux/UNIX |   0.003500 |\n| us-west-2 | us-west-2a | t2.micro | Linux/UNIX |   0.003500 |\n| us-east-2 | us-east-2c | t2.micro | Linux/UNIX |   0.003500 |\n| us-east-2 | us-east-2b | t2.micro | Linux/UNIX |   0.003500 |\n| us-east-2 | us-east-2a | t2.micro | Linux/UNIX |   0.003500 |\n| us-east-1 | us-east-1f | t2.micro | Linux/UNIX |   0.003500 |\n| us-east-1 | us-east-1e | t2.micro | Linux/UNIX |   0.003500 |\n| us-east-1 | us-east-1d | t2.micro | Linux/UNIX |   0.003500 |\n| us-east-1 | us-east-1c | t2.micro | Linux/UNIX |   0.003500 |\n| us-east-1 | us-east-1b | t2.micro | Linux/UNIX |   0.003500 |\n| us-east-1 | us-east-1a | t2.micro | Linux/UNIX |   0.003500 |\n| us-west-1 | us-west-1b | t2.micro | Linux/UNIX |   0.004100 |\n| us-west-1 | us-west-1a | t2.micro | Linux/UNIX |   0.004100 |\n| us-west-2 | us-west-2c | t2.small | Linux/UNIX |   0.006900 |\n+-----------+------------+----------+------------+------------+\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjftuga%2Fspotprice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjftuga%2Fspotprice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjftuga%2Fspotprice/lists"}