Reduce Amazon EC2 costs with these tips
Virtual servers in the cloud
Amazon EC2 cost saving tips
Optimize your Amazon EC2 costs with these tips
Rightsize Instances
Make sure to analyze your instance use with the free CloudWatch agent. This allows you to monitor memory usage for the instances and check if you are using the right instance sizing. A good rule of thumb is to half the instance type when your average CPU and memory usage is less than 40% over a 4-week period.
Opt for Savings Plans
With the AWS Savings Plan you can reduce your EC2, Lambda and ECS Fargate costs. Ideally you would pick the no-upfront savings plan for a longer term. If you are using AWS organizations make sure to share the savings plan. Purchase saving plans incrementally so you can stack them and utilize them fully.
Use Spot / Reserved Instances
For interuptable workloads you can get a large discount by using EC2 Spot Instances. These spot instances can be reclaimed by AWS (you get a two-minute notice before stopping so you can clean up work). Another way to save money is to purchase reserved instances for longer running workloads.
Service information & pricing
About Amazon EC2
- About Amazon EC2
-
Amazon EC2 offers secure, resizable compute capacity that scales rapidly for various workloads. It also features on-demand infrastructure, AWS Nitro System security, and performance optimization. You can also save costs by switching to different architectures. For instance, Graviton ARM instances can have 15-25% better price-performance ratio.
- Amazon EC2 pricing
-
Amazon EC2 offers pricing options like On-Demand (pay-as-you-go), Savings Plans (up to 72% savings), & Spot Instances (up to 90% discount). Also available are Dedicated Hosts, Capacity Reservations & per-second billing. In my experience most cost savings can be achieved by rightsizing the instances through autoscaling.