Retrieve the latest EC2 prices via command line.
npm install ec2-price -g
Output all prices in all regions.
$ ec2-price
You can specify a region.
$ ec2-price --region us-east-1
You can specify a particular type across all regions.
$ ec2-price --type c4.2xlarge
You can specify a region and a particular type.
$ ec2-price --region us-west-1 --type c4.2xlarge