My goal is to automatically assign elastic IP to an EC2 instance with automatic scaling.
I did the following: - A configured instance of EC2 with a launch script to assign an IP address - A configured startup configuration and an autoscale group for each specification.
The problem is that when I deploy an automatic launch configuration, I lose the ability to let it automatically assign a shared address (first) before it picks up an elastic IP assignment.
When I deploy AMI manually, provided that I verify that "assign public IP address", the instance will deploy, temporarily assign the address xxxx.amazon.xxxx, and then flip to my elastic IP assignment.
but..
when deploying through the command line utilities, the autoscale (as-create-launch-config + as-create-auto-scaling-group) IP will not work. I feel this can be fixed if there is an option when configuring the launch configuration to temporarily grab the public IP address, to contact the amazon API to pull out the elastic destination.
I really appreciate your help!
dgall source share