This article focuses on how to create automatic backup strategy for AWS EC2 instances, One of the ways to take backup of the whole server which is easily recoverable in case of emergency is taking AMI of the EC2 instances. For your live server. You may want to create automatic triggers which create AMIs at times for backup purposes. With help of this article you can create Lambda function and trigger it to create AMI, benefits of using Lambda function includes, you only pay when you use to run that function, at idle times, you donโt need to pay and do not require to manage additional servers for this purpose.