title: AWS Code Deploy to VPC instances in AutoScaling Group fails unless Elastic IP is assigned
body: <p>I have a AutoScaling Group Setup and AWS Code Deploy Setup for VPC having 1 public subnet. The  VPC instance is capable of accessing all AWS services through IAM Role.</p>
  
  <p>The base AMI is ubuntu with CodeDeploy Agent installed on it.
  Whenever the scaling event triggers, the AutoScaling Group launches an instance and the instance goes into "Waiting for Lifecycle Event"</p>
  
  <p>AWS Code Deploy triggers deployment and is "In Progress" state, it remains in that state for more than an hour and then it fails.</p>
  
  <p>If, within that hour, I manually assign Elastic IP, the Code deploy succeeds immediately.</p>
  
  <p>Is having public/Elastic IP a requirement for CodeDeploy to succeed on VPC instances?</p>
  
  <p>How can I get Code Deploy succeeded without the need of Public IP.</p>