title: Assigning Elastic IP to Auto-Scaled EC2 in VPC - AWS
body: <p>My goal is to automatically assign an elastic IP to an auto-scaled EC2 instance.</p>
  
  <p>I have done the following:
  - Configured EC2 instance w/ startup script to assign IP
  - Configured launch config and auto-scale group per spec.</p>
  
  <p>The issue is that when deploying the auto-scaled launch config I lose the ability to allow it to automatically assign a public address (at first) before it picks up the elastic IP assignment.</p>
  
  <p>When I deploy the AMI manually, provided that I check that "assign public IP address" box, the instance will deploy, temporarily assign the xxxx.amazon.xxxx address, then roll over to my elastic IP assignment.</p>
  
  <p>however..</p>
  
  <p>when deployed through the auto-scale command line utilities (as-create-launch-config + as-create-auto-scaling-group) the IP will not work.  I feel it could be fixed if there was an option when setting up the launch config to temporarily grab a public IP in order to communicate with the amazon API to pull the elastic assignment.</p>
  
  <p>I greatly appreciate your help! </p>