Closed cartalla closed 5 months ago
Added code to print out the duplicate pricing lists:
INFO:2024-02-05 16:50:33,717: priceList[0]:
{
"product": {
"productFamily": "Compute Instance",
"attributes": {
"enhancedNetworkingSupported": "No",
"intelTurboAvailable": "Yes",
"memory": "1152 GiB",
"dedicatedEbsThroughput": "19000 Mbps",
"vcpu": "96",
"classicnetworkingsupport": "false",
"capacitystatus": "Used",
"locationType": "AWS Region",
"storage": "8 x 1000 SSD",
"instanceFamily": "GPU instance",
"operatingSystem": "Linux",
"intelAvx2Available": "Yes",
"regionCode": "us-east-1",
"physicalProcessor": "Intel Xeon Platinum 8275L",
"clockSpeed": "3 GHz",
"ecu": "345",
"networkPerformance": "400 Gigabit",
"servicename": "Amazon Elastic Compute Cloud",
"gpuMemory": "NA",
"vpcnetworkingsupport": "true",
"instanceType": "p4d.24xlarge",
"tenancy": "Shared",
"usagetype": "BoxUsage:p4d.24xlarge",
"normalizationSizeFactor": "192",
"gpu": "8",
"intelAvxAvailable": "Yes",
"processorFeatures": "Intel AVX; Intel AVX2; Intel AVX512; Intel Turbo",
"servicecode": "AmazonEC2",
"licenseModel": "No License required",
"currentGeneration": "Yes",
"preInstalledSw": "NA",
"location": "US East (N. Virginia)",
"processorArchitecture": "64-bit",
"marketoption": "OnDemand",
"operation": "RunInstances",
"availabilityzone": "NA"
},
"sku": "H7NGEAC6UEHNTKSJ
INFO:2024-02-05 16:50:33,718: priceList[1]:
{
"product": {
"productFamily": "Compute Instance",
"attributes": {
"enhancedNetworkingSupported": "No",
"intelTurboAvailable": "Yes",
"memory": "1152 GiB",
"dedicatedEbsThroughput": "19000 Mbps",
"vcpu": "96",
"classicnetworkingsupport": "false",
"capacitystatus": "Used",
"locationType": "AWS Region",
"storage": "8 x 1000 SSD",
"instanceFamily": "GPU instance",
"operatingSystem": "Linux",
"intelAvx2Available": "Yes",
"regionCode": "us-east-1",
"physicalProcessor": "Intel Xeon Platinum 8275L",
"clockSpeed": "3 GHz",
"ecu": "345",
"networkPerformance": "400 Gigabit",
"servicename": "Amazon Elastic Compute Cloud",
"gpuMemory": "NA",
"vpcnetworkingsupport": "true",
"instanceType": "p4d.24xlarge",
"tenancy": "Shared",
"usagetype": "BoxUsage:p4d.24xlarge",
"normalizationSizeFactor": "192",
"gpu": "8",
"intelAvxAvailable": "Yes",
"processorFeatures": "Intel AVX; Intel AVX2; Intel AVX512; Intel Turbo",
"servicecode": "AmazonEC2",
"licenseModel": "No License required",
"currentGeneration": "Yes",
"preInstalledSw": "NA",
"location": "US East (N. Virginia)",
"processorArchitecture": "64-bit",
"marketoption": "CapacityBlock",
"operation": "RunInstances:CB",
"availabilityzone": "NA"
},
"sku": "YSXJGN78QTXNVGDQ"
},
The difference is for the marketoption and operation. The extra Pricinglist has marketoption==CapacityBlock instead of OnDemand and the operation as RunInstance:CB instead of RunInstances.
Add additional filters to the pricing list.
Describe the bug
Multiple pricing lists returned when only 1 expected.