This Powershell script is designed to run on two machines, and to transfer the elastic IP to the running instance should one fail. This script is loosely based on https://aws.amazon.com/articles/2127188135977316 but has several key differences:
- This provides HA for the public elastic IP without need for an elastic load balancer
- This script runs in windows as a scheduled task at startup under the SYSTEM account.
- This script logs errors to the event viewer