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
-
Access the VPC console
- Select Network Manager from the left navigation menu
- Select Reachability Analyzer
- Click Create and analyze path


-
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).

-
Configure the destination:
- Destination type: Select Instances
- Destination: Select EC2 Private
- Destination port: Leave at default (analyzes all ports)
- Protocol: Leave at default (TCP)

-
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.

Review the Analysis Results
-
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.

-
View the analysis summary
- Click the analysis to see detailed results
- Review the summary information


Analyze the Network Path in Detail
-
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



-
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.

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:
- Pre-deployment validation: Verify connectivity before launching applications
- Troubleshooting: Identify why a connection is failing
- Security audits: Confirm that only the intended paths are open
- 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:
- Run an analysis after major network configuration changes
- Test both the forward and reverse paths
- Keep analysis results for compliance purposes
- Use descriptive names for your analyses
- 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!