Back to Browse

Day 10: Attach Elastic IP to EC2 Instance

6 views
Apr 22, 2026
8:23

🌐 Day 10: Attach Elastic IP to EC2 Instance | 100 Days of Cloud (AWS) Welcome to Day 10 of the 100 Days of Cloud (AWS) series! In this lab, you’ll complete a key networking task by attaching an Elastic IP (EIP) to an EC2 instance. Elastic IPs provide a static public IP address, ensuring your instance remains reachable even after stop/start cycles. 📌 Lab Objective: Attach an existing Elastic IP to an EC2 instance. 🛠️ Task Requirements: Instance Name: nautilus-ec2 Elastic IP Name: nautilus-ec2-eip Region: us-east-1 Attach the Elastic IP to the instance 💻 Steps Using AWS Console: Log in to the AWS Management Console Select us-east-1 (N. Virginia) region Go to EC2 Dashboard → Elastic IPs Select nautilus-ec2-eip Click Actions → Associate Elastic IP address Choose: Resource type: Instance Instance: nautilus-ec2 Click Associate 💻 Using AWS CLI: 🔹 1. Get Instance ID aws ec2 describe-instances \ --filters "Name=tag:Name,Values=nautilus-ec2" \ --query "Reservations[].Instances[].InstanceId" \ --output text 🔹 2. Get Allocation ID of Elastic IP aws ec2 describe-addresses \ --query "Addresses[?Tags[?Value=='nautilus-ec2-eip']].AllocationId" \ --output text 🔹 3. Associate Elastic IP aws ec2 associate-address \ --instance-id (instance-id) \ --allocation-id (allocation-id) 🔍 4. Verify Association aws ec2 describe-addresses \ --query "Addresses[].InstanceId" ✅ Expected Outcome: Elastic IP successfully attached EC2 instance now has a static public IP Instance accessible using the Elastic IP 📚 What You’ll Learn in This Video: What Elastic IPs are in AWS Difference between dynamic and static IPs Attaching EIP to EC2 Using AWS Console and CLI Real-world cloud networking setup 🌟 Why This Lab Matters: Elastic IPs ensure consistent access to your applications, making them essential for production systems, DNS mapping, and stable infrastructure. 🎯 Series: 100 Days of Cloud (AWS) Build strong cloud fundamentals with practical labs. 🔔 Don’t forget to like, share, and subscribe for more tutorials from OtterTech! #AWS #EC2 #ElasticIP #CloudComputing #AmazonWebServices #DevOps #CloudNetworking #Infrastructure #100DaysOfCloud #OtterTech #day10

Download

1 formats

Video Formats

360pmp46.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Day 10: Attach Elastic IP to EC2 Instance | NatokHD