接続と EC2 の基本管理
EC2 インスタンスに安全にアクセスし、そのライフサイクルを管理するとともに、基本的な監視メトリクスを理解します。
「接続と EC2 の基本管理」はCoddyKit上の無料AWS for Backend Developers (EC2, S3, RDS, Lambda)レッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはAWS for Backend Developers (EC2, S3, RDS, Lambda)学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 AWS for Backend Developers (EC2, S3, RDS, Lambda)コースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
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.comConnecting 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.
よくある質問
「接続と EC2 の基本管理」レッスンは無料ですか?
はい。「接続と EC2 の基本管理」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、AWS for Backend Developers (EC2, S3, RDS, Lambda)コースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 AWS for Backend Developers (EC2, S3, RDS, Lambda)コースには全4レッスンが含まれています。
「接続と EC2 の基本管理」で何を学びますか?
EC2 インスタンスに安全にアクセスし、そのライフサイクルを管理するとともに、基本的な監視メトリクスを理解します。 ブラウザで直接実行するハンズオンコードでAWS for Backend Developers (EC2, S3, RDS, Lambda)を演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
AWS for Backend Developers (EC2, S3, RDS, Lambda)を始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのAWS for Backend Developers (EC2, S3, RDS, Lambda)は初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。
「接続と EC2 の基本管理」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このAWS for Backend Developers (EC2, S3, RDS, Lambda)レッスンでコードを書いて実行できますか?
はい。すべてのAWS for Backend Developers (EC2, S3, RDS, Lambda)レッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。