Fixes #5999 - Support assigning public IP to Amazon EC2 host

This is a shot in the dark, hopefully it hits the mark.

/cc @karaaie @KrisBuytaert
No need to change the .gitignore, please remove it from the commit.