I am new to ecs , I am able to run a cluster on spot instance and I can assign the Elastic ip address to this instance.
The problem is when the spot instance is terminated, it looses this association and my application goes down.
How can i auto attach my elastic ip to new created spot instances.