How zxkane/snat works
Main Components
a) Core Components:
• VPC (as input/integration point)
• NAT Instances (in Public Subnets)
• Route Tables
• Supported External Services (GitHub, Google, Cloudflare)
b) Implementation Components:
• CDK Construct Layer
• Runtime Components (Shell Scripts)
• Configuration Management
Specific Elements
a) Components:
• Use rectangles for AWS resources (VPC, NAT instances, Route Tables)
• Use hexagons for external services (GitHub, Google, Cloudflare)
• Use rounded rectangles for construct components
b) Connections:
• Blue: AWS resources
• Green: Construct components
• Gray: External services
• Yellow: Configuration elements
Important Relationships to Highlight
• How the construct integrates with existing VPC
• Demonstrate the relationship between NAT instances and route tables
• Traffic flow patterns to external services
• Initialization process using shell scripts
Technical Details to Note
• Amazon Linux 2 AMI usage
• Public subnet placement
• Integration points with NAT gateways
• Route table modification flow
• The ability to work alongside NAT gateways
• Selective traffic routing capabilities
• Integration with existing VPC infrastructure
• Runtime configuration through shell scripts
Remember to include version information and any relevant AWS service quotas that might affect the deployment.