Book Image

AWS DevOps Simplified

By : Akshay Kapoor
Book Image

AWS DevOps Simplified

By: Akshay Kapoor

Overview of this book

DevOps and AWS are the two key enablers for the success of any modern software-run business. DevOps accelerates software delivery, while AWS offers a plethora of services, allowing developers to prioritize business outcomes without worrying about undifferentiated heavy lifting. This book focuses on the synergy between them, equipping you with strong foundations, hands-on examples, and a strategy to accelerate your DevOps journey on AWS. AWS DevOps Simplified is a practical guide that starts with an introduction to AWS DevOps offerings and aids you in choosing a cloud service that fits your company's operating model. Following this, it provides hands-on tutorials on the GitOps approach to software delivery, covering immutable infrastructure and pipelines, using tools such as Packer, CDK, and CodeBuild/CodeDeploy. Additionally, it provides you with a deep understanding of AWS container services and how to implement observability and DevSecOps best practices to build and operate your multi-account, multi-Region AWS environments. By the end of this book, you’ll be equipped with solutions and ready-to-deploy code samples that address common DevOps challenges faced by enterprises hosting workloads in the cloud.
Table of Contents (19 chapters)
1
Part 1 Driving Transformation through AWS and DevOps
5
Part 2 Faster Software Delivery with Consistent and Reproducible Environments
9
Part 3 Security and Observability of Containerized Workloads
13
Part 4 Taking the Next Steps

Building an AMI with Packer

Packer is an open source tool from Hashicorp that automates the process of building system images. It works with all major cloud providers and helps author your golden images – templates for your virtual machines in the cloud. It also offers a multi-cloud workflow to define a blueprint for creating images across multiple providers, such as AWS and GCP. For the scope of this chapter, we will focus on creating an AWS-based AMI and starting an EC2 instance off of it.

Packer leverages a JSON template that defines all the configurations for creating your AWS image. Using the CLI, you can target a specific configuration that defines the steps to create an AMI in your AWS account. Once the execution completes, you can simply create an EC2 instance using this standardized template with all software dependencies baked in. Using pre-baked AMIs ensures a good security posture and avoids the need for any modifications post instance creation.

Let’...