navigation

Optimize EC2 cost with Lambda

Overview

This article will guide you on how to use Lambda functions to optimize costs for your system on AWS. We will use Lambda functions to automatically start and stop instances for servers that only need to run for a few hours a day.

For servers that need to run 24/7, we can optimize costs by purchasing a Savings Plan. A Savings Plan is a long-term commitment model to achieve discounts. You can learn how to purchase a savings plan here.

Below is the deployment architecture you can refer to:

Optimize cost with Lambda