🦍 ECS NETWORKING BATTLE 🦍

🎯

Sidecars

Isolation 95%
Simplicity 85%
Resources 40%
✓ PROS
Task-level isolation via IAM roles
Battle-tested pattern
No cluster changes needed
Works on existing setup
Per-customer secrets/config
✗ CONS
~100-150MB per task overhead
Extra CPU per task
More containers to manage
🌐

awsvpc Mode

Isolation 100%
Simplicity 90%
Resources 70%
✓ PROS
Perfect network isolation
Security groups per task
Unique IP per task
AWS-native solution
No custom networking
✗ CONS
Requires ENI trunking enable
Instance replacement needed
ENI limits per instance
IP address exhaustion risk
Lower task density
🔄

Shared Envoy

Isolation 30%
Simplicity 25%
Resources 95%
✓ PROS
Minimal resource overhead
Single proxy to manage
Works on existing cluster
High task density maintained
✗ CONS
No real security isolation
Port-based routing only
Containers can access wrong ports
Complex iptables for enforcement
Custom AMI required for safety
Fragile at scale
Single point of failure
🪙 WINNER: SIDECARS 🪙
BEST BALANCE OF
SECURITY × SIMPLICITY × COMPATIBILITY