Search code examples
amazon-web-servicesamazon-ec2ansibleautoscalingamazon-ami

Speed up AMI and ASG Creation


using Ansible I create an AMI of a ubuntu instance then using this AMI to create an Launch configuration and then update and auto scaling group, is there any shortcuts I can take to speed up the ASG and AMI steps, take 10mins+


Solution

  • Use an EBS backed AMI instead of an Instance Store backed AMI. From the AWS docs:

               Amazon EBS-Backed             Amazon Instance Store-Backed
    Boot time  Usually less than 1 minute    Usually less than 5 minutes
    

    --http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device