Some slightly fussy code to enable load-balancers to talk to instances, but otherwise relatively simple.