ensures sec groups is within the same VPC.

Fix for:

```
Security group sg-5f0eef3a and subnet subnet-45c4b66d belong to different networks.
```

Needs testing from Jenkins.