VPC 엔드포인트 및 비공개 연결
VPC 엔드포인트, PrivateLink 및 NAT 게이트웨이를 사용해 공용 인터넷을 거치지 않고 AWS 서비스에 비공개로 연결하는 방법을 학습합니다.
VPC 엔드포인트 및 비공개 연결은(는) CoddyKit의 무료 AWS for Backend Developers (EC2, S3, RDS, Lambda) 강의입니다. 이것은 4개 중 4번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 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.
AI 튜터와 함께 AWS for Backend Developers (EC2, S3, RDS, Lambda)을(를) 배우세요 — 무료
브라우저에서 실제 코드를 작성하고 실행하며, 24/7 AI 튜터로부터 즉각적인 도움을 받고, 웹이나 앱에서 중단한 부분부터 계속 학습하세요.
- 코스
- 12
- 레슨
- 48
자주 묻는 질문
“VPC 엔드포인트 및 비공개 연결” 강의는 무료인가요?
네 — “VPC 엔드포인트 및 비공개 연결” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 AWS for Backend Developers (EC2, S3, RDS, Lambda) 강의 전체를 잠금 해제할 수 있습니다. AWS for Backend Developers (EC2, S3, RDS, Lambda) 강의에는 총 4개의 강의가 포함되어 있습니다.
“VPC 엔드포인트 및 비공개 연결”에서 뭘 배우나요?
VPC 엔드포인트, PrivateLink 및 NAT 게이트웨이를 사용해 공용 인터넷을 거치지 않고 AWS 서비스에 비공개로 연결하는 방법을 학습합니다. 브라우저에서 직접 실행하는 실습 코드로 AWS for Backend Developers (EC2, S3, RDS, Lambda)을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.
AWS for Backend Developers (EC2, S3, RDS, Lambda)을(를) 시작하는 데 경험이 필요한가요?
사전 경험은 필요하지 않습니다. CoddyKit의 AWS for Backend Developers (EC2, S3, RDS, Lambda)은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 4번째 강의입니다.
“VPC 엔드포인트 및 비공개 연결” 강의는 얼마나 걸리나요?
대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.
이 AWS for Backend Developers (EC2, S3, RDS, Lambda) 강의에서 코드를 작성하고 실행할 수 있나요?
네. 모든 AWS for Backend Developers (EC2, S3, RDS, Lambda) 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.
이 강의의 모든 강의
- VPC, 서브넷 및 라우팅 테이블
- 보안 그룹과 NACL
- IAM 역할과 정책
- VPC 엔드포인트 및 비공개 연결