VPC-Endpunkte und private Konnektivität
Lernen Sie, sich mit VPC-Endpunkten, PrivateLink und NAT-Gateways privat mit AWS-Services zu verbinden, ohne das öffentliche Internet zu durchqueren.
VPC-Endpunkte und private Konnektivität ist eine kostenlose AWS for Backend Developers (EC2, S3, RDS, Lambda)-Lektion auf CoddyKit. Dies ist Lektion 4 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des AWS for Backend Developers (EC2, S3, RDS, Lambda)-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der AWS for Backend Developers (EC2, S3, RDS, Lambda)-Kurs umfasst insgesamt 4 Lektionen.
Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.
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.
Lerne AWS for Backend Developers (EC2, S3, RDS, Lambda) mit einem KI-Tutor — kostenlos
Schreibe und führe echten Code in deinem Browser aus, bekomme sofortige Hilfe von einem 24/7 KI-Tutor und setze dein Lernen im Web oder in der App fort.
- Kurse
- 12
- Lektionen
- 48
Häufig gestellte Fragen
Ist die Lektion „VPC-Endpunkte und private Konnektivität“ kostenlos?
Ja — der vollständige Text von „VPC-Endpunkte und private Konnektivität“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des AWS for Backend Developers (EC2, S3, RDS, Lambda)-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der AWS for Backend Developers (EC2, S3, RDS, Lambda)-Kurs umfasst insgesamt 4 Lektionen.
Was lerne ich in „VPC-Endpunkte und private Konnektivität“?
Lernen Sie, sich mit VPC-Endpunkten, PrivateLink und NAT-Gateways privat mit AWS-Services zu verbinden, ohne das öffentliche Internet zu durchqueren. Du übst AWS for Backend Developers (EC2, S3, RDS, Lambda) mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.
Brauche ich Erfahrung, um AWS for Backend Developers (EC2, S3, RDS, Lambda) zu starten?
Keine Vorkenntnisse erforderlich. AWS for Backend Developers (EC2, S3, RDS, Lambda) auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 4 von 4.
Wie lange dauert die Lektion „VPC-Endpunkte und private Konnektivität“?
Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.
Kann ich in dieser AWS for Backend Developers (EC2, S3, RDS, Lambda)-Lektion Code schreiben und ausführen?
Ja. Jede AWS for Backend Developers (EC2, S3, RDS, Lambda)-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.
Alle Lektionen in diesem Kurs
- VPCs, Subnetze und Routingtabellen
- Security Groups und NACLs
- IAM-Rollen und -Richtlinien
- VPC-Endpunkte und private Konnektivität