Book Image

AWS Automation Cookbook

By : Nikit Swaraj
Book Image

AWS Automation Cookbook

By: Nikit Swaraj

Overview of this book

AWS CodeDeploy, AWS CodeBuild, and CodePipeline are scalable services offered by AWS that automate an application's build and deployment pipeline. In order to deliver tremendous speed and agility, every organization is moving toward automating their entire application pipeline. This book will cover all the AWS services required to automate your deployment to your instances. You'll begin by setting up and using one of the AWS services for automation –CodeCommit. Next, you'll learn how to build a sample Maven and NodeJS application using CodeBuild. After you've built the application, you'll see how to use CodeDeploy to deploy the application in EC2/Auto Scaling. You'll also build a highly scalable and fault tolerant Continuous Integration (CI)/Continuous Deployment (CD) pipeline using some easy-to-follow recipes. Following this, you'll achieve CI/CD for a microservice application and reduce the risk within your software development life cycle globally. You'll also learn to set up an infrastructure using CloudFormation templates and Ansible, and see how to automate AWS resources using AWS Lambda. Finally, you'll learn to automate instances in AWS and automate the deployment lifecycle of applications. By the end of this book, you'll be able to minimize application downtime and implement CI/CD, gaining total control over your software development lifecycle.
Table of Contents (11 chapters)


Managing infrastructure is a process which is associated with software engineering. Enterprises usually have racks hardware; they used to install OS and configure application on top of it to fulfill their technology requirements. With the involvement of Cloud technologies, the on-demand provisioning of VMs, networking, and storing components becomes a lot more easier.

The only problem here is that the provisioning of such infrastructures is done manually by infrastructure managers or DevOps guys, and the manual processes have certain disadvantages, which are mentioned as follows:

  • The manual process requires more human capital, which forces a company to endure higher cost to meet important business needs.
  • Humans are error prone, which makes inconsistency in infrastructure provisioning, leading to deviations from configuration standards.
  • Manual process are slow, which...