Titik Akhir VPC dan Konektivitas Privat
Pelajari cara terhubung ke layanan AWS secara privat tanpa melewati internet publik menggunakan titik akhir VPC, PrivateLink, dan gateway NAT.
Titik Akhir VPC dan Konektivitas Privat adalah pelajaran AWS for Backend Developers (EC2, S3, RDS, Lambda) gratis di CoddyKit. Ini adalah pelajaran 4 dari 4. Kamu bisa membaca pelajaran lengkapnya di bawah secara gratis — lalu praktikkan langsung di browser dengan editor kode bawaan dan tutor AI 24/7. Ini adalah bagian dari jalur belajar AWS for Backend Developers (EC2, S3, RDS, Lambda), dan progresmu tersinkronisasi di web dan aplikasi CoddyKit. Kursus AWS for Backend Developers (EC2, S3, RDS, Lambda) mencakup 4 pelajaran total.
Bagian dari pelajaran ini belum diterjemahkan dan ditampilkan dalam bahasa Inggris.
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.
Pertanyaan yang Sering Diajukan
Apakah pelajaran “Titik Akhir VPC dan Konektivitas Privat” gratis?
Ya — teks lengkap “Titik Akhir VPC dan Konektivitas Privat” gratis dibaca di sini di web. Untuk praktiknya secara interaktif (editor kode bawaan dan tutor AI 24/7) dan buka sisa kursus AWS for Backend Developers (EC2, S3, RDS, Lambda), upgrade ke CoddyKit PRO. Kursus AWS for Backend Developers (EC2, S3, RDS, Lambda) mencakup 4 pelajaran total.
Apa yang akan aku pelajari di “Titik Akhir VPC dan Konektivitas Privat”?
Pelajari cara terhubung ke layanan AWS secara privat tanpa melewati internet publik menggunakan titik akhir VPC, PrivateLink, dan gateway NAT. Kamu berlatih AWS for Backend Developers (EC2, S3, RDS, Lambda) dengan kode praktik yang langsung kamu jalankan di browser, dan tutor AI 24/7 menjawab pertanyaanmu saat kamu mengerjakan pelajaran ini.
Apakah aku perlu pengalaman untuk memulai AWS for Backend Developers (EC2, S3, RDS, Lambda)?
Tidak diperlukan pengalaman sebelumnya. AWS for Backend Developers (EC2, S3, RDS, Lambda) di CoddyKit dirancang untuk pemula hingga pelajar tingkat lanjut, jadi kamu bisa memulai di sini atau dari awal dan belajar sesuai kecepatan kamu sendiri. Ini adalah pelajaran 4 dari 4.
Berapa lama pelajaran “Titik Akhir VPC dan Konektivitas Privat” memakan waktu?
Sebagian besar pelajaran CoddyKit memakan waktu sekitar 5–10 menit. Setiap pelajaran ringkas dan interaktif, jadi kamu membuat kemajuan stabil dan melanjutkan dari tempat kamu tinggalkan di web dan aplikasi.
Bisakah aku menulis dan menjalankan kode dalam pelajaran AWS for Backend Developers (EC2, S3, RDS, Lambda) ini?
Ya. Setiap pelajaran AWS for Backend Developers (EC2, S3, RDS, Lambda) menyertakan editor kode bawaan, jadi kamu menulis dan menjalankan kode nyata langsung di browser dan mendapatkan umpan balik AI instan — tidak diperlukan penyiapan lokal.
Semua pelajaran dalam kursus ini
- VPC, Subnet, dan Tabel Rute
- Grup Keamanan dan NACL
- Peran dan Kebijakan IAM
- Titik Akhir VPC dan Konektivitas Privat