1. A method to optimize cost and automate a deployment pipeline that generates an application program, the method comprising: generating deployment pipeline model based on policies associated with each deployment stage and task; optimizing cost of the deployment pipeline model based on model combinations of virtual machines (“VMs”); and executing the optimized deployment pipeline model on a cloud computing infrastructure to develop the application program.