简体   繁体   中英

How canI get EC2 pricing from AWS with Java code?

I'm trying to get the EC2 price from AWS in my Java project.

Is there a way to retrieve this informations from AWS via code?

  1. Grab a JSON file with EC2 prices ( https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/index.json ).
  2. Parse the JSON file in Java. Here is an example from Oracle: http://www.oracle.com/technetwork/articles/java/json-1973242.html

More on AWS Price List API: Using the AWS Price List API

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM