Skip to content

Instantly share code, notes, and snippets.

@turtlemonvh
Created July 26, 2019 16:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turtlemonvh/3465e7d295403c61181590e95e5a620d to your computer and use it in GitHub Desktop.
Save turtlemonvh/3465e7d295403c61181590e95e5a620d to your computer and use it in GitHub Desktop.
AWS disk cost analysis: EBS vs instance storage

For a performance comparison of EBS-SSD vs instance store, see: https://gist.github.com/ktheory/3c3616fca42a3716346b

Instance storage

See: https://aws.amazon.com/ec2/pricing/on-demand/ (Pricing from 20190721)

Docs: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html

m5a.large    2    N/A    8 GiB    EBS Only    $0.086 per Hour
m5a.xlarge    4    N/A    16 GiB    EBS Only    $0.172 per Hour
m5ad.large    2    N/A    8 GiB    1 x 75 NVMe SSD    $0.103 per Hour
m5ad.xlarge    4    N/A    16 GiB    1 x 150 NVMe SSD    $0.206 per Hour
m5.large    2    8    8 GiB    EBS Only    $0.096 per Hour
m5.xlarge    4    16    16 GiB    EBS Only    $0.192 per Hour
m5d.large    2    8    8 GiB    1 x 75 NVMe SSD    $0.113 per Hour
m5d.xlarge    4    16    16 GiB    1 x 150 NVMe SSD    $0.226 per Hour

Price per GB-hour

# Charge per GB-hour is the same for each m5 series instance
In [6]: (0.206 - 0.172)/150
Out[6]: 0.00022666666666666668
In [7]: (0.103 - 0.086)/75
Out[7]: 0.00022666666666666668
In [8]: (0.226 - 0.192)/150
Out[8]: 0.00022666666666666668
In [9]: (0.113 - 0.096)/75
Out[9]: 0.00022666666666666668

# Per GB-month
In [10]: (0.113 - 0.096)/75 * 30
Out[10]: 0.0068000000000000005

So $0.0068/GB-month for instance storage

EBS

https://aws.amazon.com/ebs/pricing/

  • GP2
    • $0.1 per GB-month
  • IO1
    • $0.125 per GB-month of provisioned storage
    • $0.065 per provisioned IOPS-month

Conclusion

Instance storage is about half the price of IO1 with NVMe volumes and has much better performance.

@dttvn0010
Copy link

(0.113 - 0.096)/75 * 30
Your were missing 24 hours/day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment