0Pricing
AWS for Backend Developers (EC2, S3, RDS, Lambda) · Lesson

Connecting & Basic EC2 Management

Access your EC2 instance securely, manage its lifecycle, and understand fundamental monitoring metrics.

Connecting & Basic EC2 Management is a free AWS for Backend Developers (EC2, S3, RDS, Lambda) lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the AWS for Backend Developers (EC2, S3, RDS, Lambda) learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Getting Inside Your Server

Your instance is running — now you need to get inside it. This lesson covers connecting securely and managing the basics: starting, stopping, and monitoring.

SSH Keys: Your Digital Lock

Your SSH key pair unlocks the instance: the private .pem stays on your machine, the public key lives on the server. SSH uses both to log you in without a password.

Connecting with SSH (Linux/macOS)

On Linux or macOS, connect with the ssh command and your key. First lock down the key's permissions, then point it at your instance's public DNS or IP.

ssh -i "my-key-pair.pem" ec2-user@ec2-18-200-0-1.compute-1.amazonaws.com

Connecting from Windows

On Windows, WSL lets you use the same ssh command as Linux. PuTTY (convert the key to .ppk first) and Git Bash also work well.

EC2 Instance Lifecycle States

An instance moves through lifecycle states: pending, running, stopping, stopped, shutting-down, and terminated. Stopped still costs storage; terminated is gone for good.

Stopping and Starting Your Instance

Stopping saves the instance's state to disk so you can restart it — handy for pausing costs or changing instance type. Note: a fresh public IP is assigned on restart unless you use an Elastic IP.

Terminating Your Instance Safely

Terminating permanently deletes an instance and its instance-store data; attached EBS volumes persist by default. It's irreversible — always double-check first.

Basic Monitoring with CloudWatch

CloudWatch collects metrics from your AWS resources, including EC2. Check the Monitoring tab on an instance for real-time health and performance.

Key EC2 Metrics

Watch the key EC2 metrics: CPU utilization (high means under-resourced), network in/out for traffic bottlenecks, and disk read/write operations.

Quick Check on Instance States

Your EC2 instance is currently in the Stopped state. Which of the following is TRUE about its current status and billing?

Recap: Managing Your EC2

Recap: connect over SSH with a key pair, know the lifecycle states and their cost and data implications, and watch CloudWatch metrics like CPU and network.

Frequently asked questions

Is the “Connecting & Basic EC2 Management” lesson free?

Yes — the full text of “Connecting & Basic EC2 Management” is free to read here on the web, and the AWS for Backend Developers (EC2, S3, RDS, Lambda) course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the AWS for Backend Developers (EC2, S3, RDS, Lambda) course, upgrade to CoddyKit PRO.

What will I learn in “Connecting & Basic EC2 Management”?

Access your EC2 instance securely, manage its lifecycle, and understand fundamental monitoring metrics. You practise AWS for Backend Developers (EC2, S3, RDS, Lambda) with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start AWS for Backend Developers (EC2, S3, RDS, Lambda)?

No prior experience is required. AWS for Backend Developers (EC2, S3, RDS, Lambda) on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Connecting & Basic EC2 Management” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this AWS for Backend Developers (EC2, S3, RDS, Lambda) lesson?

Yes. Every AWS for Backend Developers (EC2, S3, RDS, Lambda) lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Introduction to AWS for Backend
  2. Launching Your First EC2 Instance
  3. Connecting & Basic EC2 Management
  4. Auto Scaling and Load Balancing
← Back to AWS for Backend Developers (EC2, S3, RDS, Lambda)