نقاط نهاية VPC والاتصال الخاص
تعلّموا كيفية الاتصال بخدمات AWS بشكل خاص دون المرور عبر الإنترنت العام باستخدام نقاط نهاية VPC وPrivateLink وبوابات NAT.
نقاط نهاية VPC والاتصال الخاص درس مجاني في AWS for Backend Developers (EC2, S3, RDS, Lambda) على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 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-456Interface 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-789Endpoint 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.
تعلم AWS for Backend Developers (EC2, S3, RDS, Lambda) مع معلم ذكاء اصطناعي — مجانًا
اكتب وقم بتشغيل أكوادك الفعلية في المتصفح، واحصل على مساعدة فورية من معلم ذكاء اصطناعي متاح 24/7، واستمر من حيث توقفت على الويب أو في التطبيق.
- الدورات
- 12
- الدروس
- 48
الأسئلة الشائعة
هل درس «نقاط نهاية VPC والاتصال الخاص» مجاني؟
نعم — نص درس «نقاط نهاية VPC والاتصال الخاص» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 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) مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 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) يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- VPC والشبكات الفرعية وجداول التوجيه
- مجموعات الأمان وNACLs
- أدوار IAM وسياساته
- نقاط نهاية VPC والاتصال الخاص