DEV Community

Andres Figueroa
Andres Figueroa

Posted on

Amazon EC2: Scalable Compute at Your Command

Think of EC2 as your personal engine room in the cloud. It’s where ideas stop being just code on your laptop and become running applications, websites, or services that anyone can reach.
With EC2 you don’t just “launch servers”—you gain the freedom to choose how powerful they are, where they live, and how they connect. Whether you need a tiny test machine or a fleet of high‑performance instances, EC2 scales with you.

📌 Public subnet? Your app is out there, visible to the world.
📌 Private subnet? Your workloads stay protected, humming quietly behind the scenes.

EC2 Lab: Stages and Detailed Steps with Visual Explanations

Stage 1: Define Tags and Select OS

Step 1: In the Name and tags section, you define:
-Name: VM-Project
-Project: demo

📌 Tags help with auditing, cost tracking, and resource organization.

Step 2: In Application and OS Images, you select:
-Amazon Linux 2023 Kernel 6.1 AMI
-Architecture: 64-bit (x86)

📌 Amazon Linux is optimized for AWS, with extended support and solid performance.

Stage 2: Instance Type and Key Pair

Step 3: You choose the instance type:
-t3.micro → 2 vCPUs, 1 GiB RAM, Free Tier eligible

📌 Ideal for testing or lightweight workloads.

Step 4: You create a new PEM key pair:
-Name: vm-demo-project
-Type: RSA
-Format: .pem (compatible with OpenSSH)

📌 This key is required for SSH access. Store it securely.

Stage 3: Network and Security Configuration

Step 5: You select your custom VPC:
-VPC ID: VPC-Demo-Project
-Subnet: subnet-a-public-project (20.0.1.0/24, zone us-east-1a)
-Public IP: enabled

📌 The instance will be placed in a public subnet with internet access.

Step 6: You configure the Security Group:
-Name: demo-project
-Rule: allow SSH from your IP (38.255.158.79/32)

📌 Secure remote access restricted to your IP.

Stage 4: Storage Configuration

Step 7: You configure the root volume:
-Type: gp3
-Size: 8 GiB
-IOPS: 3000
-Encryption: not enabled

📌 gp3 offers solid performance and is Free Tier eligible.

Stage 5: IAM Role and Advanced Settings

Step 8: You assign an IAM role:
-AmazonSSMRoleForInstancesQuickSetup

📌 Allows secure access via AWS -Systems Manager (SSM) without SSH keys.

Step 9: You configure advanced settings:
-Hostname: IP-based
-DNS: IPv4 enabled
-Termination protection: disabled
-Metadata: version V2 with token required

📌 Modern and secure configuration for automated management.

Stage 6: Review and Launch

Step 10: In the summary screen, you review:
-AMI: Amazon Linux 2023
-Instance type: t3.micro
-Storage: 8 GiB
-Security Group: newly created

📌 Everything is ready to launch the instance.

Step 11: You click Launch instance.

📌 The instance enters “initializing” state, which typically lasts 30 seconds to 2 minutes.

Stage 7: Validation and Monitoring

Step 12: The instance appears as Running:
-Name: VM-Project
-ID: i-0f467eccaf0dfe8a0
-Zone: us-east-1a
-State: Initializing

📌 The instance is active but still completing health checks.

Step 13: Once checks are complete:
-Status: 3/3 checks passed

📌 The instance is fully operational.

🧠 Final Reflection
Amazon EC2 is where your architecture comes to life. It’s not just a server—it’s your design running, scaling, and responding in real time. From public-facing apps to private workloads, EC2 is the pulse of your cloud.

Top comments (0)