get ec2 pricing programmatically?

后端 未结 11 609
借酒劲吻你
借酒劲吻你 2020-11-30 18:22

Is there a way to get AWS pricing programmatically (cost per hour of each instance type, cost per GB/month of storage on S3, and etc)?

Also, are there cost monitorin

11条回答
  •  半阙折子戏
    2020-11-30 19:21

    As Amazon has recently changed the pricing scheme for EC2 instances (no more Medium or Light, only Heavy which has multiple payment options - allUpfront, partialUpfront, noUpfront) and also some time ago separated the old generation instances from the current ones, the list of undocumented pricing API links has changed as well the structure of JSON provisioned by these links. The full list if links of EC2 pricing undocumented API with descriptions, as well as the Python module for convenient access and structured output of pricing in JSON, CSV or Table formats can be found in the following repository:

    https://github.com/ilia-semenov/awspricingfull

提交回复
热议问题