Controlling traffic to and from EC2 instances