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
질문됨 일 년 전304회 조회
1개 답변
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
전문가
답변함 일 년 전
profile picture
전문가
검토됨 일 년 전
  • 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",
    

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠