Day 7: Change EC2 Instance Type
⚙️ Day 7: Change EC2 Instance Type | 100 Days of Cloud (AWS) Welcome to Day 7 of the 100 Days of Cloud (AWS) series! In this lab, you’ll learn how to modify the instance type of an EC2 instance—an important task for optimizing performance and cost in cloud environments. The Nautilus DevOps team identified that one of their instances is underutilized, so they’ve decided to downgrade it to a smaller instance type to save resources. 📌 Lab Objective: Change the EC2 instance type and ensure it is running properly afterward. 🛠️ Task Requirements: Instance Name: datacenter-ec2 Current Type: t2.micro New Type: t2.nano Region: us-east-1 Ensure instance is in running state after change 💻 Steps Using AWS Console: Log in to the AWS Management Console. Select the us-east-1 (N. Virginia) region. Navigate to EC2 Dashboard → Instances. Locate instance datacenter-ec2. Ensure Status Checks = 2/2 passed (wait if still initializing). Stop the instance: Click Instance state → Stop instance Once stopped: Click Actions → Instance settings → Change instance type Select t2.nano Apply changes. Start the instance again: Click Instance state → Start instance 💻 Using AWS CLI: # Stop instance aws ec2 stop-instances --instance-ids instance-id # Modify instance type aws ec2 modify-instance-attribute \ --instance-id instance-id \ --instance-type "{\"Value\": \"t2.nano\"}" # Start instance aws ec2 start-instances --instance-ids instance-id 🔍 Verify Status: aws ec2 describe-instances \ --instance-ids instance-id \ --query "Reservations[*].Instances[*].InstanceType" ✅ Expected Outcome: Instance type successfully changed to t2.nano Instance is in running state Status checks passed 📚 What You’ll Learn in This Video: How to change EC2 instance types When to scale up vs scale down Managing instance lifecycle (stop/start) Cost optimization strategies in AWS Using AWS Console and CLI Real-world cloud resource management 🌟 Why This Lab Matters: Optimizing instance types helps reduce cloud costs while maintaining performance. This is a key responsibility for DevOps and cloud engineers managing production workloads. 🎯 Series: 100 Days of Cloud (AWS) Keep learning AWS with practical labs covering compute, storage, networking, and security. 🔔 Don’t forget to like, share, and subscribe for more tutorials from OtterTech! #AWS #EC2 #CloudComputing #AmazonWebServices #DevOps #CloudOptimization #CostOptimization #Nautilus #100DaysOfCloud #OtterTech #Day7
Download
0 formatsNo download links available.