1 Answer
- Newest
- Most votes
- Most comments
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
Relevant content
- Accepted Answerasked 7 months ago
- asked 3 months ago
- asked a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 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