Using Reachability Analyzer

Using Reachability Analyzer

ℹ️ Reachability Analyzer Overview

VPC Reachability Analyzer is a configuration analysis tool that helps you:

  • Verify network connectivity between resources in your VPC
  • Troubleshoot connectivity issues without sending actual packets
  • Validate security group and network ACL configurations
  • Analyze both the forward and reverse paths

💡 Key Benefits:

  • No packets sent: Static analysis based on configuration
  • Cost-effective: You pay only ~$0.10 per analysis
  • Fast results: Completes within minutes
  • Detailed insight: Shows the exact path and any potential blockers

🏗️ What We’re Testing: We’ll verify connectivity between EC2 Public and EC2 Private to confirm our VPC configuration is correct.

Create a Reachability Analysis

  1. Access the VPC console

    • Select Network Manager from the left navigation menu
    • Select Reachability Analyzer
    • Click Create and analyze path

    Create VPC

    Create VPC

  2. Configure the source

    • Name tag: Enter EC2 Public to EC2 Private
    • Source type: Select Instances
    • Source: Select EC2 Public

    💡 Explanation: The source is where the connection starts (in this case, EC2 Public).

    Create VPC

  3. Configure the destination:

    • Destination type: Select Instances
    • Destination: Select EC2 Private
    • Destination port: Leave at default (analyzes all ports)
    • Protocol: Leave at default (TCP)

    Create VPC

  4. Review and create the analysis

    • Leave the remaining parameters at their default values
    • Click Create and analyze path

    ⏱️ Analysis time: The process usually takes 1-5 minutes to complete.

    Create VPC

Review the Analysis Results

  1. Check the analysis status

    • Wait for the status to change to Reachable
    • Reachable: connectivity is possible based on the current configuration
    • Not reachable: there’s an issue with the configuration

    ✅ Expected result: The status is Reachable, since we configured the security groups to allow traffic between the instances.

    Create VPC

  2. View the analysis summary

    • Click the analysis to see detailed results
    • Review the summary information

    Create VPC

    Create VPC

Analyze the Network Path in Detail

  1. View the forward path details

    • Click the Path details tab
    • Review the network components along the path:
      • Source: EC2 Public instance
      • Source ENI: EC2 Public’s network interface
      • Source Security Group: Rules allowing outbound traffic
      • Destination Security Group: Rules allowing inbound traffic
      • Destination ENI: EC2 Private’s network interface
      • Destination: EC2 Private instance

    💡 Understanding the path:

    EC2 Public → ENI → Security Group (outbound) → 
    VPC Routing → Security Group (inbound) → ENI → EC2 Private
    

    Create VPC

    Create VPC

    Create VPC

  2. Analyze the reverse path

    • Click the Reverse path details tab
    • Confirm that return traffic can flow from EC2 Private back to EC2 Public
    • This confirms two-way connectivity

    🔒 Security note: Both the forward and reverse paths must be open for successful two-way communication.

    Create VPC

Understanding the Results

💡 What Reachability Analyzer checks:

  • ✅ Security group rules (inbound and outbound)
  • ✅ Network ACL rules
  • ✅ Route table configuration
  • ✅ Internet Gateway and NAT Gateway settings
  • ✅ VPC peering and Transit Gateway routes
  • ✅ Network interface configuration

⚠️ What it doesn’t check:

  • ❌ Instance-level firewalls (iptables, Windows Firewall)
  • ❌ Application-level issues
  • ❌ DNS resolution problems
  • ❌ Actual network performance

🏗️ Use Cases:

  1. Pre-deployment validation: Verify connectivity before launching applications
  2. Troubleshooting: Identify why a connection is failing
  3. Security audits: Confirm that only the intended paths are open
  4. Change validation: Confirm that security group changes work as expected

💰 Cost:

  • Per analysis: ~$0.10 per path analysis
  • No ongoing charges: You pay only when you run an analysis
  • Cost-effective: Cheaper than trial-and-error debugging

💡 Best Practices:

  1. Run an analysis after major network configuration changes
  2. Test both the forward and reverse paths
  3. Keep analysis results for compliance purposes
  4. Use descriptive names for your analyses
  5. Delete old analyses to keep the console tidy

✅ Done: You’ve successfully used VPC Reachability Analyzer to verify connectivity between the EC2 Public and EC2 Private instances!