0Pricing
AWS for Backend Developers (EC2, S3, RDS, Lambda) · บทเรียน

จุดปลายทาง VPC และการเชื่อมต่อส่วนตัว

เรียนรู้การเชื่อมต่อบริการ AWS แบบส่วนตัวโดยไม่ผ่านอินเทอร์เน็ตสาธารณะด้วยจุดปลายทาง VPC, PrivateLink และเกตเวย์ NAT

จุดปลายทาง VPC และการเชื่อมต่อส่วนตัว เป็นบทเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) ฟรีบน CoddyKit นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส AWS for Backend Developers (EC2, S3, RDS, Lambda) มีบทเรียนทั้งหมด 4 บทเรียน

บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ

The Problem with Public Traffic

By default, resources in a private subnet reach AWS services like S3 over the public internet via a NAT gateway. That adds cost, latency, and exposure.

VPC endpoints let traffic stay inside the AWS network.

Two Kinds of Endpoints

AWS offers two endpoint types:

  • Gateway endpoints — for S3 and DynamoDB (route table based, free)
  • Interface endpoints — for most other services (an ENI in your subnet, powered by PrivateLink)

Gateway Endpoint for S3

A gateway endpoint adds a route to your route table so S3 traffic never leaves AWS. There is no extra hourly charge.

aws ec2 create-vpc-endpoint \
  --vpc-id vpc-123 \
  --service-name com.amazonaws.us-east-1.s3 \
  --route-table-ids rtb-456

Interface Endpoints and PrivateLink

An interface endpoint creates an elastic network interface with a private IP in your subnet. It is built on AWS PrivateLink.

Use it for services like SQS, SNS, Secrets Manager, and your own services.

aws ec2 create-vpc-endpoint \
  --vpc-id vpc-123 \
  --vpc-endpoint-type Interface \
  --service-name com.amazonaws.us-east-1.secretsmanager \
  --subnet-ids subnet-789

Endpoint Policies

You can attach a policy to an endpoint to restrict which actions and resources are allowed through it. This adds a layer of access control beyond IAM.

NAT Gateways Recap

A NAT gateway lets private subnet instances make outbound internet calls (e.g. to download packages) while blocking inbound connections.

Endpoints reduce, but do not always eliminate, the need for NAT.

DNS Resolution for Endpoints

Interface endpoints support private DNS. When enabled, the standard service hostname (e.g. secretsmanager.us-east-1.amazonaws.com) resolves to the private endpoint IP automatically.

Security Groups on Endpoints

Interface endpoints have an ENI, so they use security groups. Allow inbound HTTPS (port 443) from the resources that need the endpoint.

Cross-VPC Connectivity

PrivateLink also lets you expose your own service to other VPCs or even other AWS accounts without VPC peering, by publishing an endpoint service.

Cost and Security Benefits

Using endpoints:

  • Keeps traffic off the public internet
  • Reduces NAT gateway data processing charges
  • Lets you apply fine-grained endpoint policies

Choosing the Right Endpoint

Decision guide:

  • Connecting to S3 or DynamoDB → gateway endpoint
  • Connecting to any other AWS service → interface endpoint
  • Outbound internet to non-AWS hosts → NAT gateway

Quick Check

Test your connectivity knowledge.

Recap

You learned about private connectivity:

  • Gateway endpoints for S3 and DynamoDB
  • Interface endpoints / PrivateLink for other services
  • NAT gateways for general outbound internet
  • Endpoint policies and security groups control access

Endpoints keep traffic private, cheaper, and more secure.

คำถามที่พบบ่อย

บทเรียน “จุดปลายทาง VPC และการเชื่อมต่อส่วนตัว” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “จุดปลายทาง VPC และการเชื่อมต่อส่วนตัว” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส AWS for Backend Developers (EC2, S3, RDS, Lambda) ให้อัปเกรดเป็น CoddyKit PRO คอร์ส AWS for Backend Developers (EC2, S3, RDS, Lambda) มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “จุดปลายทาง VPC และการเชื่อมต่อส่วนตัว”

เรียนรู้การเชื่อมต่อบริการ AWS แบบส่วนตัวโดยไม่ผ่านอินเทอร์เน็ตสาธารณะด้วยจุดปลายทาง VPC, PrivateLink และเกตเวย์ NAT คุณปฏิบัติ 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 ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน

บทเรียน “จุดปลายทาง VPC และการเชื่อมต่อส่วนตัว” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) นี้ได้ไหม

ได้ บทเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. VPC ซับเน็ต และตารางเส้นทาง
  2. กลุ่มความปลอดภัยและ NACL
  3. บทบาทและนโยบาย IAM
  4. จุดปลายทาง VPC และการเชื่อมต่อส่วนตัว
← กลับไปที่ AWS for Backend Developers (EC2, S3, RDS, Lambda)