Building a CI/CD Pipeline in AWS Using Terraform

Building a CI/CD Pipeline in AWS Using Terraform
Building a CI/CD Pipeline in AWS Using Terraform

CLOUD LABS

Building a CI/CD Pipeline in AWS Using Terraform

In this Cloud Lab, you’ll learn to create a complete CI/CD pipeline using CodeBuild, CodeDeploy, and CodePipeline through Terraform.

14 Tasks

intermediate

2hr 30m

Certificate of Completion

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

Learning Objectives

An understanding of CodePipeline and its application to launch CI/CD pipelines using Terraform
Working knowledge of CodeBuild and CodeDeploy in AWS
Hands-on experience using CI/CD pipelines to automatically deploy code changes to production from a GitHub repository

Technologies
AWS logoAWS
CodePipeline
CodeBuild logoCodeBuild
CodeDeploy logoCodeDeploy
Terraform logoTerraform
S3 logoS3
EC2 logoEC2
Cloud Lab Overview

Terraform seamlessly integrates with the CI/CD workflow, streamlining the process of building, testing, and deploying applications. It is a tool that can provision infrastructure on your machine or any cloud provider, thus ensuring similar infrastructure anywhere possible.

In this Cloud Lab, you will learn about Terraform, why to choose Terraform for CI/CD, and how to manage Terraform code. Then, you’ll create an S3 bucket and security group and configure an IAM role for an EC2 instance using Terraform. You’ll then set up a GitHub repository, create a CodeBuild project, a CodeDeploy application and deployment group, and configure an entire CodePipeline using Terraform.

By the end of this Cloud Lab, you’ll become well-versed in creating and launching CI/CD pipelines through Terraform on AWS, an essential skill for any cloud architect. Using Terraform, teams can ensure that the underlying infrastructure is automatically provisioned and configured in alignment with the code changes.

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

Architecture diagram
Architecture diagram
Cloud Lab Tasks
1.Introduction
Getting Started
2.Power of Terraform in CI/CD
Introduction to Terraform
Why Choose Terraform for CI/CD Pipeline
How to Manage Terraform Configuration
3.Prerequisite Resources
Create an S3 Bucket
Configure the Security Group
Configure an EC2 Instance
4.Create the CI/CD Pipeline
Source: Set Up the GitHub Repository
CodeBuild: Create a Project
CodeDeploy: Set Up Deployment
CodePipeline: Create a CI/CD Pipeline
Test the CI/CD Pipeline
5.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