🔧 AI Nachrichten ChatGPT showing blank screen [Fix](05.09.2026 um 19:55 Uhr)
⚠️ Malware / Trojaner / VirenSofort deinstallieren: Diese 19 Browser-Erweiterungen sind mit Malware verseucht(06.09.2026 um 08:00 Uhr)
🔧 AI Nachrichten ChatGPT showing blank screen [Fix](05.09.2026 um 19:55 Uhr)
⚠️ Malware / Trojaner / VirenSofort deinstallieren: Diese 19 Browser-Erweiterungen sind mit Malware verseucht(06.09.2026 um 08:00 Uhr)

🔧 Programmierung 🕛 kürzlich 7 Min Lesezeit
0

Day 11 - AWS VPC

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

When you start learning AWS, services like EC2, S3, Lambda, and RDS feel exciting.



But behind almost every real AWS architecture, there is one silent foundation:



Amazon VPC — Virtual Private Cloud



If EC2 is your server, RDS is your database, and ALB is your traffic manager, then VPC is the private network where all these resources live.



In this blog, we will understand:




  • What is VPC

  • CIDR and subnetting basics

  • Public and private subnets

  • Route tables

  • Internet Gateway

  • Security Groups

  • VPC Peering

  • Step-by-step VPC Peering example









🔗 Resources




  • ** Support the Journey on GitHub:

    If you're following along, consider starring and forking the repo:**


  • CIDR Calculater:











    Internet Gateway



    An Internet Gateway allows communication between your VPC and the internet.



    For a subnet to become public, two things are required:




    CODE
    1. Internet Gateway attached to VPC
    2. Route table route:
    0.0.0.0/0 → Internet Gateway














    Security Groups



    A Security Group acts like a virtual firewall for AWS resources.



    AWS explains that a security group controls traffic allowed to reach an instance, and only traffic allowed by security group rules can reach that resource.



    Security Groups are attached to resources like:




    • EC2

    • RDS

    • Load Balancer

    • Lambda inside VPC



    Example Security Group rule:




    CODE
    Inbound Rules:

    Type Port Source
    SSH 22 Your IP
    HTTP 80 0.0.0.0/0
    HTTPS 443 0.0.0.0/0






    Important point:



    Security Groups are stateful.



    That means if inbound traffic is allowed, response traffic is automatically allowed.









    VPC Peering



    VPC Peering allows two VPCs to communicate privately using private IP addresses.



    Example:




    CODE
    VPC-A: 10.0.0.0/16
    VPC-B: 192.168.0.0/16






    After VPC Peering:




    CODE
    EC2 in VPC-A can communicate with EC2 in VPC-B privately.






    Use cases:




    • Connect two application VPCs

    • Connect shared services VPC with app VPC

    • Connect dev VPC with monitoring VPC

    • Connect VPCs across accounts

    • Connect VPCs across regions



    Important: VPC Peering does not support overlapping CIDR blocks. AWS states that you cannot create a VPC peering connection if the VPCs have matching or overlapping IPv4 or IPv6 CIDR blocks.



    vpc peering









    Step-by-Step Example: Create VPC Peering



    Let’s say we have two VPCs:




    CODE
    VPC-A: 10.0.0.0/16
    VPC-B: 192.168.0.0/16






    Goal:




    CODE
    EC2 instance in VPC-A should communicate with EC2 instance in VPC-B.












    Step 1: Create VPC-A



    Go to:




    CODE
    AWS Console → VPC → Create VPC






    Create:




    CODE
    Name: VPC-A
    CIDR: 10.0.0.0/16






    Create subnet:




    CODE
    Name: VPC-A-Private-Subnet
    CIDR: 10.0.1.0/24












    Step 2: Create VPC-B



    Create second VPC:




    CODE
    Name: VPC-B
    CIDR: 192.168.0.0/16






    Create subnet:




    CODE
    Name: VPC-B-Private-Subnet
    CIDR: 192.168.1.0/24












    Step 3: Launch EC2 Instances



    Launch one EC2 instance in each VPC.




    CODE
    EC2-A → VPC-A → 10.0.1.0/24 subnet
    EC2-B → VPC-B → 192.168.1.0/24 subnet






    Make sure both instances have private IPs.



    Example:




    CODE
    EC2-A Private IP: 10.0.1.10
    EC2-B Private IP: 192.168.1.10












    Step 4: Create VPC Peering Connection



    Go to:




    CODE
    VPC Console → Peering Connections → Create Peering Connection






    Fill details:




    CODE
    Name: VPC-A-to-VPC-B
    Requester VPC: VPC-A
    Accepter VPC: VPC-B






    Click:




    CODE
    Create Peering Connection












    Step 5: Accept Peering Request



    Go to:




    CODE
    VPC → Peering Connections






    Select the request.



    Click:




    CODE
    Actions → Accept Request






    Now the peering connection status should become:




    CODE
    Active












    Step 6: Update Route Table of VPC-A



    Go to VPC-A route table.



    Add route:




    CODE
    Destination: 192.168.0.0/16
    Target: VPC Peering Connection






    AWS requires route tables on both sides to be updated so private IPv4 traffic can flow between peered VPCs. The destination should be the peer VPC CIDR and the target should be the VPC peering connection. ([AWS Documentation][6])









    Step 7: Update Route Table of VPC-B



    Go to VPC-B route table.



    Add route:




    CODE
    Destination: 10.0.0.0/16
    Target: VPC Peering Connection






    Now both VPCs know how to reach each other.









    Step 8: Update Security Groups



    For EC2-A security group, allow traffic from VPC-B:




    CODE
    Type: ICMP / SSH / Custom TCP
    Source: 192.168.0.0/16






    For EC2-B security group, allow traffic from VPC-A:




    CODE
    Type: ICMP / SSH / Custom TCP
    Source: 10.0.0.0/16






    For testing ping:




    CODE
    Allow ICMP






    For testing SSH:




    CODE
    Allow TCP 22












    Step 9: Test Connectivity



    Login to EC2-A and ping EC2-B private IP:




    CODE
    ping 192.168.1.10






    Or test SSH:




    CODE
    ssh [email protected]






    If route tables and security groups are correct, communication should work privately.









    Final Thoughts



    AWS VPC is one of the most important concepts in cloud networking.



    If you understand VPC properly, then services like EC2, Load Balancer, RDS, EKS, Lambda networking, VPN, Direct Connect, and Transit Gateway become much easier.



    At a high level, remember this:




    CODE
    VPC = Your private network in AWS
    Subnet = Smaller network inside VPC
    Route Table = Traffic direction rules
    Internet Gateway = Internet access
    Security Group = Firewall for resources
    VPC Peering = Private connection between two VPCs


    Vollständiger Original-Bericht
    Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
    ↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 43%
🟡 In Evaluierung 29%
🟢 Keine Auswirkung 10%
Spannende Innovation 18%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
2 Quellen
Creator Panel – One Creator, Full Production: Der neue Creator Workflow
1 Quelle
ChatGPT showing blank screen [Fix]
1 Quelle
Sofort deinstallieren: Diese 19 Browser-Erweiterungen sind mit Malware verseucht