π Mastering AWS EC2, ELB, Beanstalk & Lightsail: A Beginner-Friendly DevOps Guide

3 min read
π Day 12 - AWS Practical Learning
βοΈ By Parag Kulkarni
π Topics Covered: EC2, Elastic Load Balancer (ELB), Elastic Beanstalk, Lightsail, OSI Model, and Load Balancer Routing
π₯οΈ EC2 (Elastic Compute Cloud)
β What is EC2?
In EC2 service, we can launch virtual servers (EC2 instances), which are essentially VMs on the cloud.
EC2 is regional: You must select a region to launch an instance.
AWS services can be:
π Global (e.g., IAM, Route 53)
π Regional (e.g., EC2, S3)
βοΈ Elastic Load Balancer (ELB)
π‘ ELB Overview
ELB is a managed service by AWS that helps in distributing incoming traffic across multiple EC2 instances across Availability Zones.
It ensures high availability, fault tolerance, and auto scaling integration.
π Key ELB Concepts
ELB is not a server, itβs a serviceβyou cannot log into it.
You can access ELB via DNS name (URL).
ELB doesn't reside in a specific Availability Zone; it works at the regional level.
IP addresses of ELB are dynamic, not static.
AWS recommends using the DNS name instead of the IP.
π§ OSI Model Refresher (7 Layers)
π Application (Layer 7)
π¨ Presentation
π Session
π Transport (Layer 4)
π Network (Layer 3)
π Data Link
π§± Physical
π± Elastic Beanstalk
π What is Beanstalk?
A Platform as a Service (PaaS) that handles the heavy lifting of EC2 instance provisioning, load balancing, auto scaling, and monitoring.
Ideal for quick deployment of applications (Java, Node.js, Python, etc.).
You just upload your codeβBeanstalk does the rest!
π§© How Beanstalk Works:
You provide:
π§Ύ Application code
βοΈ Environment configurations
π§± Platform (e.g., Java, Node.js)
Beanstalk:
Automatically launches EC2
Applies configuration
Deploys your app
π§ Unlike traditional PaaS, you have full control over the EC2 instances launched by Beanstalk. You can SSH into them and modify as needed.
π Lightsail β Simplicity First
π‘ Why Use Lightsail?
Lightsail is perfect if you want to quickly launch pre-configured servers for:
WordPress
Joomla
Drupal
GitLab
Redmine
Itβs beginner-friendly and hides infrastructure complexities.
β Limitations: Lightsail does not support auto scaling. It's ideal for small-scale or standalone projects.
π Advanced Load Balancer Routing β ALB Rules
π οΈ ALB Routing Methods:
π Host-Based Routing:
Routes traffic based on domain name.
http://parag.com β app 1 http://web.parag.com β app 2
π€οΈ Path-Based Routing:
Routes traffic based on URL path.
http://parag.com/admin β admin app
π Each rule is linked to a target group, which includes your EC2 instances.
π Gateway Load Balancer (GWLB)
Deploy, manage, and scale third-party network appliances like:
π₯ Firewalls
π‘οΈ Intrusion Prevention Systems
Uses GENEVE protocol (6081) to tunnel traffic.
Works at OSI Layer 3 (Network Layer).
π Conclusion
If you're beginning your DevOps or Cloud Engineering journey, understanding these core AWS components will make you job-ready in no time. This guide gives you a strong foundation in:
β EC2 instances
β Load balancing strategies
β Platform-as-a-Service using Elastic Beanstalk
β Lightsail for pre-configured deployment
β Networking layers & traffic routing in ALB
0
Subscribe to my newsletter
Read articles from Parag Kulkarni directly inside your inbox. Subscribe to the newsletter, and don't miss out.
AWSENGINEERAWS#AWS #ElasticLoadBalancer #TargetGroup #ApplicationLoadBalancer #NetworkLoadBalancer #DevOps #CloudArchitecture #100DaysOfCloud #TechBlog #CloudInfrastructure #PathBasedRouting #Hashnode #AWSBeginner #CloudSkills #Automation #HighAvailability #BuildInPublic #WomenWhoCode #SheBuilds #LearnInPublic #LoadBalancingGateway Load BalancerDevopsDevops articlesCloud ComputingCloudec2high availabilityAWS Certified Solutions Architect AssociateOSI Model
Written by
