Prices returned via API

0

Reading an offer file (JSON format), returned by Price List Bulk API, (for example from this index file https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/eu-south-1/index.json) I noticed that some prices for AmazonEC2 are 0.0 USD. Does it mean that those offers are free of charge? Thanks in advance for any suggestion.

Angelo
asked a year ago293 views
1 Answer
0

Hello,

The 0.0 USD you are seeing are related to Reserved Instances purchases with an All Upfront purchase option: Those are under the "reserved" termType.

"X.Y" : {
          "offerTermCode" : "Y",
          "sku" : "X",
          "effectiveDate" : "2022-07-01T00:00:00Z",
          "priceDimensions" : {
            "X.Y.2TG2D8R56U" : {
              "rateCode" : "X.Y.Z",
              "description" : "Upfront Fee",
              "unit" : "Quantity",
              "pricePerUnit" : {
                "USD" : "1544" <---- The Upfront free
              },
              "appliesTo" : [ ]
            },
            "X.Y.W" : {
              "rateCode" : "x.y.z",
              "description" : "USD 0.0 per Linux/UNIX (Amazon VPC), m6i.large **reserved instance** applied",
              "beginRange" : "0",
              "endRange" : "Inf",
              "unit" : "Hrs",
              "pricePerUnit" : {
                "USD" : "0.0000000000" <---- $0.0 due to the PurchaseOption
              },
              "appliesTo" : [ ]
            }
          },
          "termAttributes" : {
            "LeaseContractLength" : "3yr",
            "OfferingClass" : "convertible",
            "PurchaseOption" : "All Upfront"  <---- PurchaseOption is specified here
          }
        },

Generally, you are charged for the reservations and not the instances.

Other $0.0 could also be related to dedicated hosts for which you pay for the host and not the instance. For the below, the m6i.12xlarge is paid for by the host purchase instead.

$0.00 per RHEL with HA and SQL Standard m6i.12xlarge Dedicated Host Instance hour

Some information about the model can be found here: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#offer-term-type

Regards,

Jon

profile pictureAWS
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a year ago
  • I understand that for dedicated host the price is $0.00, but how is it possible, via API, to retrieve the "true" price? Thanks

  • Check the productFamily "productFamily" : "Dedicated Host" or the tenancy you want "tenancy" : "Dedicated". Use that sku or the instancesSku respectively to find the associated terms options

     "2C9BXFWJ4WH2RZTF" : {
          "sku" : "2C9BXFWJ4WH2RZTF",
          "productFamily" : "Dedicated Host",
    

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions