Deploying a CI/CD Pipeline on EKS Using Terraform

Deploying a CI/CD Pipeline on EKS Using Terraform
Deploying a CI/CD Pipeline on EKS Using Terraform

CLOUD LABS

Deploying a CI/CD Pipeline on EKS Using Terraform

In this Cloud Lab, you’ll learn to create a complete CI/CD pipeline for deploying an application on EKS using CloudShell, CodeBuild, and CodePipeline through Terraform.

12 Tasks

advanced

2hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

Hands-on experience using CI/CD pipelines to automatically deploy code changes to production from a GitHub repository
Hands-on experience deploying an application on EKS using CI/CD pipeline with Terraform
An understanding of CodePipeline and its application to launch CI/CD pipelines using Terraform
Familiarity with deploying a Terraform template using AWS CloudShell

Technologies
CodeBuild logoCodeBuild
ECR logoECR
EKS
S3 logoS3
CodePipeline
Terraform logoTerraform
Cloud Lab Overview

Amazon Elastic Kubernetes Service (EKS) offers a fully managed Kubernetes environment, making it easy to deploy, manage, and scale containerized applications. You’ll use Terraform to automate the setup of an EKS cluster and build a CI/CD pipeline that integrates infrastructure as code with continuous deployment.

In this Cloud Lab, you will create an S3 bucket using Terraform to store the necessary files to deploy a CI/CD pipeline on EKS. These files will create another S3 bucket to manage pipeline artifacts and deploy a custom VPC with public and private subnets for secure network traffic management. You will also set up an EKS cluster and node groups to provide the required compute resources. Following this, you will create an ECR repository to store the images used by the EKS cluster. The next step involves configuring a CI/CD pipeline with AWS CodePipeline and CodeBuild to automate builds, tests, and application deployments with each code change and update in the GitHub repository. Finally, you will deploy the infrastructure stored in the S3 bucket using AWS CloudShell.

After completing this Cloud Lab, you’ll have hands-on experience with Terraform for infrastructure automation, managing Kubernetes clusters on EKS, and creating automated CI/CD pipelines—valuable skills for any DevOps or cloud professional.

The following is the high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab:

Automating the setup of an EKS cluster using Terraform
Automating the setup of an EKS cluster using Terraform
Cloud Lab Tasks
1.Introduction
Getting Started
Create a Terraform Store
2.Create Resources for CI/CD Pipeline
Create an S3 Bucket to Store CodeBuild Artifacts
Configure ECR and a Custom VPC
Configure EKS Cluster and a Node Group
3.Create the CI/CD Pipeline
Source: Set Up the GitHub Repository
CodeBuild: Create a Project
CodePipeline: Create a CI/CD Pipeline
Deploy the Code
Test the CI/CD Pipeline
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image