We are today releasing a small application called
aws-ec2-assign-elastic-ip that will assign an Elastic IP number to instances that starts in an auto scaling group. Usually instances in an auto scaling group will be assigned any public IP. But it is necessary to know the public IP on before hand in situations were the instances are communicating with 3rd party systems which open access for specific IPs only.
The application is intended to be executed when the EC2 instance is starting. It will then fetch an unassociated Elastic IP address and assign it to itself. You can optionally give the script a list of IP numbers to choose from.
Read more at the project’s GitHub page.
Have a great weekend,
The Skymill team