amazon-ec2-instance-selector icon indicating copy to clipboard operation
amazon-ec2-instance-selector copied to clipboard

Pricing info for EMR

Open brycahta opened this issue 4 years ago • 0 comments
trafficstars

Issue

  • When designating --service emr , the prices reflect EC2 On-demand costs:
    • ex: m5.12xlarge returns $2.304

Expected Behavior

  • Price should reflect EC2 on-demand costs plus the EMR premium from the emr pricing table
  • From the pricing table, the EMR premium for m5.12xlarge is $0.27/hr, so the output should be $2.304+$0.27 = $2.574

Repro steps

[25/03/21 9:49:22] ➜  amazon-ec2-instance-selector git:(main) ./build/ec2-instance-selector --service emr --price-per-hour-min 0.09 -o table-wide --max-results 5 --region us-east-1 --allow-list=m5\.\*

Instance Type  VCPUs   Mem (GiB)  Hypervisor  Current Gen  Hibernation Support  CPU Arch  Network Performance  ENIs    GPUs    GPU Mem (GiB)  GPU Info  On-Demand Price/Hr
-------------  -----   ---------  ----------  -----------  -------------------  --------  -------------------  ----    ----    -------------  --------  ------------------
m5.12xlarge    48      192        nitro       true         false                x86_64    10 Gigabit           8       0       0                        $2.304
m5.16xlarge    64      256        nitro       true         false                x86_64    20 Gigabit           15      0       0                        $3.072
m5.24xlarge    96      384        nitro       true         false                x86_64    25 Gigabit           15      0       0                        $4.608
m5.2xlarge     8       32         nitro       true         true                 x86_64    Up to 10 Gigabit     4       0       0                        $0.384
m5.4xlarge     16      64         nitro       true         true                 x86_64    Up to 10 Gigabit     8       0       0                        $0.768

brycahta avatar Mar 25 '21 15:03 brycahta