2018-03-16 06:29:29.285205+00:00

A Load Balancer contains rules that mention Target Groups.

A Target Group contains EC2 instances that can be populated by hand or automatically by an Auto Scaling group.

A Launch Configuration contains an AMI.

An Auto Scaling Group contains a Launch Configuration and some Target Groups.

After making app source code changes and creating a new AMI for it, I will create a Launch Configuration for it.

I will edit the Auto Scaling Group, so it uses the new Launch Configuration. I will delete the old Launch Configuration and also the old AMI.

After seeing Target Groups are populated with the new version of EC2 instances, I will deregister the old EC2 instances from the Target Groups, and delete that old EC2 instances.

Comparing Rolling EC2 Auto Scaling Groups with Google Cloud Run Revisions

While rolling AMI + Launch Template updates on AWS EC2 Auto Scaling Groups provide full VM control, migrating stateless web and WebSocket workloads to Google Cloud Run cuts deployment warm-up times from minutes to seconds. Read the full case study in Migrating from AWS EC2/ALB to Google Cloud Run.


About the Author — Hire Freelance Programmer Aldian Fazrihady

Aldian Fazrihady is a Top-Rated Senior Freelance Programmer, Freelance Full Stack Developer, and AI Application Engineer with 15+ years of production software engineering experience and Google Cloud Professional Cloud Architect & Data Engineer certifications. He specializes in building custom LLM & autonomous AI agents, RAG pipelines, Next.js/React PWAs, Python (Django/FastAPI), Go microservices, and serverless cloud infrastructure on Google Cloud Run and AWS.

Hire Aldian Fazrihady on Upwork | Book 1-Day Programming Service ($100 USD via Polar) | View Live AI Portfolio | Portfolio Directory | Send a Direct Message

Freelance Programmer Specializations & Category Hubs