การเปิดใช้งานอินสแตนซ์ EC2 แรกของคุณ
เรียนรู้การจัดเตรียมและกำหนดค่าเซิร์ฟเวอร์เสมือน (อินสแตนซ์ EC2) ในคลาวด์ AWS พร้อมเลือกประเภทอินสแตนซ์และ AMI ที่เหมาะสม
การเปิดใช้งานอินสแตนซ์ EC2 แรกของคุณ เป็นบทเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) ฟรีบน CoddyKit นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส AWS for Backend Developers (EC2, S3, RDS, Lambda) มีบทเรียนทั้งหมด 4 บทเรียน
บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ
Start Your EC2 Journey
Time to launch your first EC2 instance. The key choices: an Amazon Machine Image (the OS) and an instance type (the hardware specs).
What's an Amazon Machine Image?
An AMI is the blueprint for your instance — a pre-configured template bundling an OS and often software, like a snapshot of a ready-to-go server.
Selecting the Right AMI
First step at launch: pick an AMI. Options include AWS Marketplace, community (use caution), or your own. Amazon Linux 2 or Ubuntu are great starters.
Decoding Instance Types
An instance type sets the hardware — vCPUs, RAM, network, and storage. AWS groups them into families (T, M, C, R) tuned for different workloads.
Picking Your Server's Power
For learning, the T-family is cheap and flexible — t2.micro is free-tier eligible. Reach for M, C, or R types as workloads grow. Start small.
Generating a Key Pair
A key pair secures SSH access: AWS keeps the public key on your instance, you download the private key. Guard that private file — it's your only way in.
EC2 Networking Basics
Every instance runs inside a VPC, an isolated AWS network split into subnets. At launch, the default VPC and a public subnet are fine to start.
Attaching Storage Volumes
EBS volumes are your instance's persistent virtual hard drive. Choose size and type (gp2, gp3); they survive independently of the instance's lifecycle.
Firewall with Security Groups
Security groups are virtual firewalls controlling inbound and outbound traffic. Only explicitly allowed traffic gets through — for a first instance, open SSH from your IP.
Review and Launch!
Final step: review your AMI, instance type, key pair, network, storage, and security groups, then hit Launch. The instance moves from pending to running.
Quick Check on EC2 Basics
You've learned about key components when launching an EC2 instance.
Your EC2 Launch Summary
Recap: launching an EC2 instance means choosing an AMI and instance type, setting up a key pair, and configuring networking, storage, and security groups.
คำถามที่พบบ่อย
บทเรียน “การเปิดใช้งานอินสแตนซ์ EC2 แรกของคุณ” ฟรีหรือไม่
ใช่ — ข้อความเต็มของ “การเปิดใช้งานอินสแตนซ์ EC2 แรกของคุณ” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส AWS for Backend Developers (EC2, S3, RDS, Lambda) ให้อัปเกรดเป็น CoddyKit PRO คอร์ส AWS for Backend Developers (EC2, S3, RDS, Lambda) มีบทเรียนทั้งหมด 4 บทเรียน
คุณจะเรียนรู้อะไรในบทเรียน “การเปิดใช้งานอินสแตนซ์ EC2 แรกของคุณ”
เรียนรู้การจัดเตรียมและกำหนดค่าเซิร์ฟเวอร์เสมือน (อินสแตนซ์ EC2) ในคลาวด์ AWS พร้อมเลือกประเภทอินสแตนซ์และ AMI ที่เหมาะสม คุณปฏิบัติ AWS for Backend Developers (EC2, S3, RDS, Lambda) ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน
คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) หรือไม่
ไม่จำเป็นต้องมีประสบการณ์มาก่อน AWS for Backend Developers (EC2, S3, RDS, Lambda) บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน
บทเรียน “การเปิดใช้งานอินสแตนซ์ EC2 แรกของคุณ” ใช้เวลานานแค่ไหน
บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย
ฉันเขียนและรันโค้ดในบทเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) นี้ได้ไหม
ได้ บทเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ
บทเรียนทั้งหมดในหลักสูตรนี้
- บทนำ AWS สำหรับแบ็กเอนด์
- การเปิดใช้งานอินสแตนซ์ EC2 แรกของคุณ
- การเชื่อมต่อและการจัดการ EC2 ขั้นพื้นฐาน
- การปรับขนาดอัตโนมัติและการกระจายโหลด