A leading software development company has various web applications hosted in an Auto Scaling group of Amazon EC2 instances which are designed for high availability and fault tolerance. The company is using AWS CloudFormation to easily manage its cloud infrastructure as code as well as for deployment. Currently, it has to manually update its CloudFormation templates for every new available AMI of its application. This procedure is prone to human errors and entails a high management overhead on its deployment process. Which of the following is the MOST suitable and cost-effective solution that the DevOps engineer should implement to automate this process?