Automatically change AWS EC2 instance size with Lambda

preview_player
Показать описание
AWS Auto Scaling enables the automatic scaling of EC2 instances by launching and terminating instances. This is known as horizontal scaling, or scaling out. Sometimes, we want to scale vertically (or "up").

AWS does not provide an automated service to manage this process but we can create our own solution using the EC2 API and some custom code. In this video, you'll learn how to automatically scale an instance vertically using an AWS Lambda function that runs some Python code and modifies the EC2 instance type.

Make sure you download the code below to follow along with this exercise:
_______________________

At Digital Cloud Training, our mission is to help you succeed in your #cloud career.

👉 Check out our popular training options for #AmazonWebServices, including

Рекомендации по теме
Комментарии
Автор

You're an amazing teacher, if I have the chance, I'll do all of your Udemy courses.

Reflektr
Автор

Can we factor in zero downtime in this ? By building the launch configuration template and replacing the instance, waiting till the old gets drained and new instance is launched.

adityadeshpande
Автор

Could you add multiple ec2 instances to this code? I need to update about 50 servers to the same server type and want to do it in bulk

AdemBaradan