AWS for Backend Developers (EC2, S3, RDS, Lambda) · Aula

Endpoints de VPC e conectividade privada

Aprenda a conectar-se privadamente aos serviços da AWS sem atravessar a internet pública usando endpoints de VPC, PrivateLink e gateways NAT.

Aula 4 de 413 etapas

Endpoints de VPC e conectividade privada é uma aula grátis de AWS for Backend Developers (EC2, S3, RDS, Lambda) no CoddyKit. Esta é a aula 4 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de AWS for Backend Developers (EC2, S3, RDS, Lambda), e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de AWS for Backend Developers (EC2, S3, RDS, Lambda) inclui 4 aulas no total.

Partes desta aula ainda não foram traduzidas e aparecem em inglês.

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.

Grátis para começar

Aprenda AWS for Backend Developers (EC2, S3, RDS, Lambda) com um tutor de IA — grátis

Escreva e execute código real no seu navegador, obtenha ajuda instantânea de um tutor de IA 24/7 e continue de onde parou na web ou no app.

Cursos
12
Aulas
48

Perguntas Frequentes

A aula “Endpoints de VPC e conectividade privada” é grátis?

Sim — o texto completo de “Endpoints de VPC e conectividade privada” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de AWS for Backend Developers (EC2, S3, RDS, Lambda), atualize para CoddyKit PRO. O curso de AWS for Backend Developers (EC2, S3, RDS, Lambda) inclui 4 aulas no total.

O que vou aprender em “Endpoints de VPC e conectividade privada”?

Aprenda a conectar-se privadamente aos serviços da AWS sem atravessar a internet pública usando endpoints de VPC, PrivateLink e gateways NAT. Você pratica AWS for Backend Developers (EC2, S3, RDS, Lambda) com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.

Preciso ter experiência prévia para começar AWS for Backend Developers (EC2, S3, RDS, Lambda)?

Nenhuma experiência prévia é necessária. AWS for Backend Developers (EC2, S3, RDS, Lambda) no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 4 de 4.

Quanto tempo leva a aula “Endpoints de VPC e conectividade privada”?

A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.

Posso escrever e executar código nesta aula de AWS for Backend Developers (EC2, S3, RDS, Lambda)?

Sim. Cada aula de AWS for Backend Developers (EC2, S3, RDS, Lambda) inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.

Todas as aulas deste curso

  1. VPC, sub-redes e tabelas de rotas
  2. Grupos de segurança e NACLs
  3. Funções e políticas do IAM
  4. Endpoints de VPC e conectividade privada
← Voltar para AWS for Backend Developers (EC2, S3, RDS, Lambda)