open-duelyst / duelyst

Duelyst is a digital collectible card game and turn-based strategy hybrid, developed by Counterplay Games.
Creative Commons Zero v1.0 Universal
3.62k stars 556 forks source link

[P1] Build our own ECS-optimized API to reduce EBS sizes #196

Closed willroberts closed 1 year ago

willroberts commented 1 year ago

Summary

AWS bills $0.08 per GB per month for EBS devices. Currently, the default ECS-optimized AMI provisions EBS volumes from a 30GB snapshot, which requires that the EBS volume is also >= 30GB.

We only use 3GB of storage, so it would be ideal to use an 8GB EBS volume. In order to support this, we need to pack our own subsidiary AMI by following this process: https://aws.amazon.com/blogs/containers/creating-custom-amazon-machine-images-with-the-ecs-optimized-ami-build-recipes/

This will reduce our storage costs from 60GB x $0.08 = $4.80/month to 16GB x $0.08 = $1.28/month. The AWS Free Tier gives 30GB of EBS volumes for free for the first month, so we're currently being billed 30GB x $0.08 = $2.40/month for this. We'd pay nothing for 12 months after making this change.