AWS Automation Cookbook

Automate release processes, deployment, and continuous integration of your application as well as infrastructure automation with the powerful services offered by AWS
Preview in Mapt
Code Files

AWS Automation Cookbook

Nikit Swaraj

Automate release processes, deployment, and continuous integration of your application as well as infrastructure automation with the powerful services offered by AWS
Mapt Subscription
FREE
$29.99/m after trial
eBook
$22.40
RRP $31.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$22.40
$39.99
$29.99 p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


AWS Automation Cookbook Book Cover
AWS Automation Cookbook
$ 31.99
$ 22.40
Kali Linux Wireless Penetration Testing Cookbook Book Cover
Kali Linux Wireless Penetration Testing Cookbook
$ 31.99
$ 22.40
Buy 2 for $35.00
Save $28.98
Add to Cart

Book Details

ISBN 139781788394925
Paperback388 pages

Book Description

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 an 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/Autoscaling. 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 Microservices application and reduce the risk within your software development lifecycle. You’ll also learn to set up an infrastructure using CloudFormation Template 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

Chapter 1: Using AWS CodeCommit
Introduction
Introducing VCS and Git
Introducing AWS CodeCommit - Amazon managed SaaS Git
Getting started with CodeCommit for HTTP users
Setting up CodeCommit for SSH users using AWS CLI
Applying security and restrictions
Migrating a Git repository to AWS CodeCommit
Chapter 2: Building an Application using CodeBuild
Introduction
Introducing AWS CodeBuild
Building a Java application using Maven
Building a NodeJS application using yarn
Building a Maven application using AWS CodeBuild console
Building a sample NodeJS application using AWS CodeBuild via Buildspec.yml
Chapter 3: Deploying Application using CodeDeploy & CodePipeline
Introduction
The Deployment strategy in AWS CodeDeploy
Writing an application-specific file
Deploying a static application in an EC2 instance from the S3 Bucket using AWS CodeDeploy
Introducing AWS CodePipeline and its working
Continuous Deployment of static application to AWS S3 using AWS CodePipeline 
Chapter 4: Building Scalable and Fault-Tolerant CI/CD Pipeline
Introduction
CI/CD pipeline workflow
Setting up AWS CodeCommit
Creating the S3 bucket and enabling versioning
Creating the launch configuration and Auto Scaling group
Creating AWS CodeDeploy application using the Auto Scaling group
Setting up the Jenkins Server and installing the required plugins
Integrating Jenkins with all of the AWS developers tools
Chapter 5: Understanding Microservices and ECS
Introduction
Understanding microservices and their deployment
Playing around with Docker containers
Setting up AWS ECR and pushing an image into it
Understanding ECS and writing task definitions and services
Chapter 6: Continuous Deployment to ECS Using Developer Tools and CloudFormation
Introduction
Understanding the architecture and workflow
Setting up the infrastructure to host the application
Setting Up CodeCommit for our application source
Creating a CodeBuild project for the build stage
Understanding the inside content of helper files (BuildSpec.yml, Dockerfile, and CF template)
Creating a CodePipeline using CodeCommit, CodeBuild, and CloudFormation
Chapter 7: IaC Using CloudFormation and Ansible
Introduction
AWS CloudFormation and writing the CloudFormation template
Creating a production-ready web application infrastructure using CloudFormation
Automation with Ansible
Creating an AWS infrastructure using the Ansible EC2 dynamic inventory
Chapter 8: Automating AWS Resource Control Using AWS Lambda
Introduction
Creating an AMIs of the EC2 instance using AWS lambda and CloudWatch
Sending notifications through SNS using Config and Lambda
Streaming and visualizing AWS CloudTrail logs in real time using Lambda with Kibana
Chapter 9: Microservice Applications in Kubernetes Using Jenkins Pipeline 2.0
Introduction
Deploying multinode clusters on AWS using the Ansible playbook
Deploying a multinode production-ready cluster on AWS using Kops
Deploying a sample application on Kubernetes
Working with Kubernetes on AWS using AWS resources
Jenkins pipeline 2.0 (Pipeline as Code) using Jenkinsfile
Application deployment using Jenkinsfile
Deploying microservices applications in Kubernetes using Jenkinsfile
Chapter 10: Best Practices and Troubleshooting Tips
Best practices with AWS CodeCommit
Troubleshooting with CodeCommit
Troubleshooting with CodeBuild

What You Will Learn

  • Build a sample Maven and NodeJS Application using CodeBuild
  • Deploy the application in EC2/Auto Scaling and see how CodePipeline helps you integrate AWS services
  • Build a highly scalable and fault tolerant CI/CD pipeline
  • Achieve the CI/CD of a microservice architecture application in AWS ECS using CodePipeline, CodeBuild, ECR, and CloudFormation
  • Automate the provisioning of your infrastructure using CloudFormation and Ansible
  • Automate daily tasks and audit compliance using AWS Lambda
  • Deploy microservices applications on Kubernetes using Jenkins Pipeline 2.0

Authors

Table of Contents

Chapter 1: Using AWS CodeCommit
Introduction
Introducing VCS and Git
Introducing AWS CodeCommit - Amazon managed SaaS Git
Getting started with CodeCommit for HTTP users
Setting up CodeCommit for SSH users using AWS CLI
Applying security and restrictions
Migrating a Git repository to AWS CodeCommit
Chapter 2: Building an Application using CodeBuild
Introduction
Introducing AWS CodeBuild
Building a Java application using Maven
Building a NodeJS application using yarn
Building a Maven application using AWS CodeBuild console
Building a sample NodeJS application using AWS CodeBuild via Buildspec.yml
Chapter 3: Deploying Application using CodeDeploy & CodePipeline
Introduction
The Deployment strategy in AWS CodeDeploy
Writing an application-specific file
Deploying a static application in an EC2 instance from the S3 Bucket using AWS CodeDeploy
Introducing AWS CodePipeline and its working
Continuous Deployment of static application to AWS S3 using AWS CodePipeline 
Chapter 4: Building Scalable and Fault-Tolerant CI/CD Pipeline
Introduction
CI/CD pipeline workflow
Setting up AWS CodeCommit
Creating the S3 bucket and enabling versioning
Creating the launch configuration and Auto Scaling group
Creating AWS CodeDeploy application using the Auto Scaling group
Setting up the Jenkins Server and installing the required plugins
Integrating Jenkins with all of the AWS developers tools
Chapter 5: Understanding Microservices and ECS
Introduction
Understanding microservices and their deployment
Playing around with Docker containers
Setting up AWS ECR and pushing an image into it
Understanding ECS and writing task definitions and services
Chapter 6: Continuous Deployment to ECS Using Developer Tools and CloudFormation
Introduction
Understanding the architecture and workflow
Setting up the infrastructure to host the application
Setting Up CodeCommit for our application source
Creating a CodeBuild project for the build stage
Understanding the inside content of helper files (BuildSpec.yml, Dockerfile, and CF template)
Creating a CodePipeline using CodeCommit, CodeBuild, and CloudFormation
Chapter 7: IaC Using CloudFormation and Ansible
Introduction
AWS CloudFormation and writing the CloudFormation template
Creating a production-ready web application infrastructure using CloudFormation
Automation with Ansible
Creating an AWS infrastructure using the Ansible EC2 dynamic inventory
Chapter 8: Automating AWS Resource Control Using AWS Lambda
Introduction
Creating an AMIs of the EC2 instance using AWS lambda and CloudWatch
Sending notifications through SNS using Config and Lambda
Streaming and visualizing AWS CloudTrail logs in real time using Lambda with Kibana
Chapter 9: Microservice Applications in Kubernetes Using Jenkins Pipeline 2.0
Introduction
Deploying multinode clusters on AWS using the Ansible playbook
Deploying a multinode production-ready cluster on AWS using Kops
Deploying a sample application on Kubernetes
Working with Kubernetes on AWS using AWS resources
Jenkins pipeline 2.0 (Pipeline as Code) using Jenkinsfile
Application deployment using Jenkinsfile
Deploying microservices applications in Kubernetes using Jenkinsfile
Chapter 10: Best Practices and Troubleshooting Tips
Best practices with AWS CodeCommit
Troubleshooting with CodeCommit
Troubleshooting with CodeBuild

Book Details

ISBN 139781788394925
Paperback388 pages
Read More

Read More Reviews

Recommended for You

Kali Linux Wireless Penetration Testing Cookbook Book Cover
Kali Linux Wireless Penetration Testing Cookbook
$ 31.99
$ 22.40
TensorFlow 1.x Deep Learning Cookbook Book Cover
TensorFlow 1.x Deep Learning Cookbook
$ 35.99
$ 25.20
Security Automation with Ansible 2 Book Cover
Security Automation with Ansible 2
$ 35.99
$ 25.20
Automated Machine Learning Pipeline with Mesos [Integrated Course] Book Cover
Automated Machine Learning Pipeline with Mesos [Integrated Course]
$ 124.99
$ 106.25
Infrastructure as a Service Solutions with Azure [Video] Book Cover
Infrastructure as a Service Solutions with Azure [Video]
$ 124.99
$ 106.25
AWS Certified Solutions Architect - Associate - Prep Course [Video] Book Cover
AWS Certified Solutions Architect - Associate - Prep Course [Video]
$ 124.99
$ 106.25