How to create AMI at runtime using AWS Lambda?
<p>Scenario - 
Running AWS EC2 with AutoScaling to host web servers. Code is hosted on BitBucket.</p>

<p>Requirements - </p>

<ol>
<li>Integrate BitBucket with CodeDeploy for automated deployments.</li>
<li>After every successful deployment, create AMI of the running healthy instance.</li>
<li>Create a new Launch Configuration for the new AMI.</li>
<li>Update existing AutoScaling group.</li>
</ol>

<p>I went through above scenario and the challenging part was that Web Servers were running using IIS since it was a .NET app, which means I had to automated configuration part of .NET as well.</p>

<p>If you are also into similar situation, then I have written a post of that. Just click on the link below. It works for all kind of environmennts.</p>

<p><a href="http://www.kblearningacademy.com/using-aws-lambda-function-to-create-ami-at-runtime/" rel="nofollow">http://www.kblearningacademy.com/using-aws-lambda-function-to-create-ami-at-runtime/</a></p>

python amazon-web-services bitbucket aws-lambda