Attaching instances to networks