Book Image

Accelerating DevSecOps on AWS

By : Nikit Swaraj
Book Image

Accelerating DevSecOps on AWS

By: Nikit Swaraj

Overview of this book

Continuous integration and continuous delivery (CI/CD) has never been simple, but these days the landscape is more bewildering than ever; its terrain riddled with blind alleys and pitfalls that seem almost designed to trap the less-experienced developer. If you’re determined enough to keep your balance on the cutting edge, this book will help you navigate the landscape with ease. This book will guide you through the most modern ways of building CI/CD pipelines with AWS, taking you step-by-step from the basics right through to the most advanced topics in this domain. The book starts by covering the basics of CI/CD with AWS. Once you’re well-versed with tools such as AWS Codestar, Proton, CodeGuru, App Mesh, SecurityHub, and CloudFormation, you’ll focus on chaos engineering, the latest trend in testing the fault tolerance of your system. Next, you’ll explore the advanced concepts of AIOps and DevSecOps, two highly sought-after skill sets for securing and optimizing your CI/CD systems. All along, you’ll cover the full range of AWS CI/CD features, gaining real-world expertise. By the end of this AWS book, you’ll have the confidence you need to create resilient, secure, and performant CI/CD pipelines using the best techniques and technologies that AWS has to offer.
Table of Contents (15 chapters)
1
Section 1:Basic CI/CD and Policy as Code
5
Section 2:Chaos Engineering and EKS Clusters
9
Section 3:DevSecOps and AIOps

Creating your EKS cluster

In this section of the chapter, we will be creating a fully private EKS cluster manually so that we will become aware of each small component integration. Let's get started.

VPC, subnet, and endpoint creation

The first thing to do is to create a network backbone for the EKS infrastructure. You need to create a VPC, three private subnets, and one public subnet. The three private subnets will be dedicated to the EKS-managed worker node. We will spin up a bastion server in the public subnet to connect to the private EKS cluster endpoint. Perform the following steps to create a VPC and public subnet:

  1. Go to the VPC console. You will be at the VPC dashboard. Click on Your VPCs on the left-hand side. Then click on Create VPC on the right-hand side.

Figure 5.1 – VPC console

  1. You will see the Create VPC page. In VPC settings, provide the following details:
    1. Name tag: dso-eks-vpc.
    2. IPv4 CIDR block: 10.0.0.0/22...