読者です 読者をやめる 読者になる 読者になる

aws memo

AWS関連の備忘録 (※本ブログの内容は個人的見解であり、所属組織及び企業の意見を代弁するものではありません。1年以上古いエントリは疑ってかかってください)

EC2 : jsonフォーマットの価格データ

2014/3/31 追記: HTML等がごっそり変わったので下記情報は古いです。

現時点ではこんな感じ

$ curl http://aws.amazon.com/ec2/pricing/ | grep a0.awsstatic.com/pricing/ 

その他、このへんのツールとか参考にどうぞ。

powdahound/ec2instances.info · GitHub

-------ここから、古い記事------

Amazon EC2 Pricingに、EC2の価格が表示されるが、実際のプライステーブルはajaxjsonフォーマットのデータを取得して表示してるぽい。

てことで、こういうことすると

$ curl http://aws.amazon.com/ec2/pricing/ | grep json

こうなる

model: '/ec2/pricing/ri-light-linux.json',
model: '/ec2/pricing/ri-light-mswin.json',
model: '/ec2/pricing/ri-medium-linux.json',
model: '/ec2/pricing/ri-medium-mswin.json',
model: '/ec2/pricing/ri-heavy-linux.json',
model: '/ec2/pricing/ri-heavy-mswin.json',
model: '/ec2/pricing/pricing-on-demand-instances.json',
model: '/ec2/pricing/pricing-data-transfer.json',
model: '/ec2/pricing/pricing-ebs.json',
model: '/ec2/pricing/pricing-elastic-ips.json',
model: '/ec2/pricing/pricing-cloudwatch.json',
model: '/ec2/pricing/pricing-elb.json',

ほかにも探せば、こんなにあるらしい。

  /ec2/pricing/pricing-elb.json/
  /ec2/pricing/pricing-ebs.json/
  /ec2/pricing/pricing-spot.json/
  /ec2/pricing/pricing-cloudwatch.json/
  /ec2/pricing/pricing-elastic-ips.json/
  /ec2/pricing/pricing-data-transfer.json/
  /ec2/pricing/pricing-reserved-instances.json/
  /ec2/pricing/pricing-on-demand-instances.json/
  /ec2/pricing/pricing-reserved-instances-low-utilization.json/
  /ec2/pricing/pricing-reserved-instances-high-utilization.json/
  /rds/pricing/mysql/pricing-reserved-instances.json/
  /rds/pricing/mysql/pricing-multiAZ-deployments.json/
  /rds/pricing/oracle/pricing-multiAZ-deployments.json/
  /rds/pricing/mysql/pricing-standard-deployments.json/
  /rds/pricing/oracle/pricing-li-reserved-instances.json/
  /rds/pricing/oracle/pricing-li-standard-deployments.json/
  /rds/pricing/oracle/pricing-byol-reserved-instances.json/
  /rds/pricing/oracle/pricing-byol-standard-deployments.json/
  /rds/pricing/mysql/pricing-provisioned-db-multiAZ-deploy.json/
  /rds/pricing/mysql/pricing-provisioned-db-standard-deploy.json/
  /rds/pricing/oracle/pricing-provisioned-db-multiAZ-deploy.json/
  /rds/pricing/oracle/pricing-provisioned-db-standard-deploy.json/
  /suse/pricing-reserved-instances.json/
  /suse/pricing-on-demand-instances.json/
  /suse/pricing-reserved-instances-low-utilization.json/
  /suse/pricing-reserved-instances-high-utilization.json/
  /rhel/pricing-on-demand-instances.json/
  /windows/pricing-on-demand-instances.json/
  /windows/pricing-reserved-instances-windows.json/
  /windows/pricing-reserved-instances-windows-sql.json/
  /windows/pricing-reserved-instances-low-utilization-windows.json/
  /windows/pricing-reserved-instances-high-utilization-windows.json/
  /windows/pricing-reserved-instances-low-utilization-windows-sql.json/
  /windows/pricing-reserved-instances-high-utilization-windows-sql.json/
  /dedicated-instances/pricing-reserved-instances.json/
  /dedicated-instances/pricing-on-demand-instances.json/
  /dedicated-instances/pricing-reserved-instances-windows-sql.json/
  /dedicated-instances/pricing-reserved-instances-low-utilization.json/
  /dedicated-instances/pricing-reserved-instances-high-utilization.json/
  /dedicated-instances/pricing-reserved-instances-low-utilization-windows-sql.json/
  /dedicated-instances/pricing-reserved-instances-high-utilization-windows-sql.json/
  /simpledb/pricing/pricing-machine-utilization.json/
  /simpledb/pricing/pricing-structured-data-storage.json/
  /s3/pricing/pricing-storage.json/
  /s3/pricing/pricing-requests.json/
  /s3/pricing/pricing-data-transfer.json/