Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Ingress
      • Pod
    • Helm Chart
    • OAuth2 Proxy
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
    • MetalLB
    • Kong Gateway
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Argo Events
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • DevSecOps
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
      • Azure Cloud
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log, Monitor & Tracing
    • DataDog
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
    • NextCloud
  • Toggle search form

[AWS] If Ec2 connects to S3, Will it go through the internet or the internal network of AWS?

Posted on April 9, 2023April 9, 2023 By nim No Comments on [AWS] If Ec2 connects to S3, Will it go through the internet or the internal network of AWS?

ChatGPT:

When an Amazon EC2 instance needs to access Amazon S3, the traffic will typically stay within the internal AWS network rather than going out to the public internet. This is because Amazon S3 and Amazon EC2 are both services provided by AWS, and AWS provides private connectivity between these services through its Virtual Private Cloud (VPC) networking feature.

By default, when you launch an EC2 instance within a VPC, the instance is assigned a private IP address within the VPC’s IP address range. The VPC’s routing tables are then configured to route traffic between the EC2 instance and other services within the VPC, such as Amazon S3.

This means that if you configure your EC2 instance to access S3 using the S3 API or CLI, the traffic will be routed through the internal AWS network rather than going out to the public internet. This provides better performance, security, and reliability compared to accessing S3 over the public internet.

Does traffic between Amazon EC2 and Amazon S3 really go over the internet?

https://repost.aws/questions/QU4fn697qVTRWaB0rhGZfHZw/questions/QU4fn697qVTRWaB0rhGZfHZw/does-traffic-between-amazon-ec2-and-amazon-s3-really-go-over-the-internet

No, even if your AWS resources communicate with each other in the same AWS Region, the network traffic doesn’t go over the internet. However, you do need to use resources such as a NAT Gateway (which incurs additional costs), and an internet gateway (IGW) to make VPC go over the internet. Even traffic between two AWS Regions (such as from your Amazon EC2 instance with a public IP address to an S3 bucket in another commercial Region) will go over AWS Global Backbone. From Building a Scalable and Secure Multi-VPC AWS Network Infrastructure whitepaper:

All network traffic between regions is encrypted, stays on the AWS global network backbone, and never traverses the public internet, thereby reducing threat vectors, such as common exploits and DDoS attacks.

To avoid using an IGW, consider using a VPC endpoint.

AWS - Amazon Web Service

Post navigation

Previous Post: [Argo-Workflows] Lesson9: Secrets as mounted volumes
Next Post: [Argo-Workflows] Lesson10: Loop

More Related Articles

[Aws] Access S3 or bucket from other account AWS AWS - Amazon Web Service
[Assume Role/KMS] Using Assume Role to make the other AWS Account access all KMS that/this AWS Account. AWS - Amazon Web Service
[AWS/EKS] Unlocking Simplicity and Security of Amazon EKS Pod Identity. AWS - Amazon Web Service
[AWS] – Terraform Beginner – Lesson 1: Create a Free Account of AWS AWS - Amazon Web Service
[IP/EKS] Add new subnets into the eks on AWS AWS - Amazon Web Service
[AWS] Login Argocd via Cognito in AWS ArgoCD

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • [Laravel] Laravel Helpful June 26, 2025
  • [VScode] Hướng dẫn điều chỉnh font cho terminal June 20, 2025
  • [WordPress] Hướng dấn gửi mail trên WordPress thông qua gmail. June 15, 2025
  • [Bitbucket] Git Clone/Pull/Push with Bitbucket through API Token. June 12, 2025
  • [Teamcity] How to transfer the value from pipeline A to pipeline B June 9, 2025

Archives

  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • BareMetal
    • NextCloud
  • CI/CD
    • Argo Events
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • DevSecOps
    • Golang
    • Jquery & JavaScript
    • Laravel
    • NextJS 14 & ReactJS & Type Script
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • Azure Cloud
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kong Gateway
    • Kubernetes
      • Ingress
      • Pod
    • Longhorn – Storage
    • MetalLB
    • OAuth2 Proxy
    • Vault
    • VictoriaMetrics
  • Log, Monitor & Tracing
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Fluent
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2025 NimTechnology.