Python version of EIP by Pierre Gilot
I have used the following to reattach an AWS elastic IP at every boot.
https://github.com/pierreg256/eip
I had to do it on Windows 2008. So I wrote a python script to do that and schedule a task at boot time to execute it.