https://github.com/toshimaru/ec2-price
Retrieve the latest EC2 prices via command line.
https://github.com/toshimaru/ec2-price
Last synced: 3 months ago
JSON representation
Retrieve the latest EC2 prices via command line.
- Host: GitHub
- URL: https://github.com/toshimaru/ec2-price
- Owner: toshimaru
- Created: 2015-08-09T18:11:10.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T20:11:16.000Z (about 5 years ago)
- Last Synced: 2024-09-19T08:21:27.403Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](http://badge.fury.io/js/ec2-price)
ec2-price
----
Retrieve the latest EC2 prices via command line.
## Installation
```
npm install ec2-price -g
```
## Usage
Output all prices in all regions.
```shell
$ ec2-price
```
You can specify a region.
```shell
$ ec2-price --region us-east-1
```
You can specify a particular type across all regions.
````shell
$ ec2-price --type c4.2xlarge
````
You can specify a region and a particular type.
````shell
$ ec2-price --region us-west-1 --type c4.2xlarge
````
You can specify JSON format (for use w/ [jq](https://stedolan.github.io/jq/) or other).
````shell
$ ec2-price --json | jq '.'
{
"regions": [
{
"region": "us-east-1",
"instances": [
{
"name": "t2.nano",
"price": "0.0065"
},
{
"name": "t2.micro",
"price": "0.013"
},
{
"name": "t2.small",
"price": "0.026"
},
...
````