Book description
Automate release processes, deployment, and continuous integration of your application as well as infrastructure automation with the powerful services offered by AWS
About This Book
- Accelerate your infrastructure's productivity by implementing a continuous delivery pipeline within your environment
- Leverage AWS services and Jenkins 2.0 to perform complete application deployments on Linux servers
- This recipe-based guide that will help you minimize application deployment downtime
Who This Book Is For
This book is for developers and system administrators who are responsible for hosting their application and managing instances in AWS. It's also ideal for DevOps engineers looking to provide continuous integration, deployment, and delivery. A basic understanding of AWS, Jenkins, and some scripting knowledge is needed.
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
In Detail
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.
Style and approach
This book takes a "How to do it" approach, providing with easy solutions to automate common maintenance and deployment tasks.
Publisher resources
Table of contents
- Title Page
- Copyright
- Credits
- About the Author
- Acknowledgments
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Preface
- Using AWS CodeCommit
- Building an Application using CodeBuild
-
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
-
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
-
Understanding Microservices and ECS
- Introduction
- Understanding microservices and their deployment
-
Playing around with Docker containers
- Containers
- Docker
- Getting ready
-
How to do it...
- Running a container
- Starting the stopped container
- Assigning a Name to a container
- Creating daemonized containers
- Exposing ports of a container
- Managing persistent storage with Docker
- Adding a data volume
- Getting details of a container
- Containerize your application using Dockerfile
- Push the image to Dockerhub
- Setting up AWS ECR and pushing an image into it
- Understanding ECS and writing task definitions and services
-
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
- IaC Using CloudFormation and Ansible
- Automating AWS Resource Control Using AWS Lambda
-
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
- Best Practices and Troubleshooting Tips
Product information
- Title: AWS Automation Cookbook
- Author(s):
- Release date: November 2017
- Publisher(s): Packt Publishing
- ISBN: 9781788394925
You might also like
video
Automation in AWS with CloudFormation, CLI, and SDKs
More Than 11 Hours of Video Instruction More than 11 hours of video instruction covering AWS …
book
AWS SysOps Cookbook - Second Edition
Become an AWS SysOps administrator and explore best practices to maintain a well-architected, resilient, and secure …
book
AWS Security Cookbook
Secure your Amazon Web Services (AWS) infrastructure with permission policies, key management, and network security, along …
book
Python and AWS Cookbook
If you intend to use Amazon Web Services (AWS) for remote computing and storage, Python is …