Skip to content

OklenCodes/Terraform-AWS-Projects

Repository files navigation

Terraform with AWS Tutorials

Objective of this is to create a series for Terraform and AWS hands-on projects, that are easy to follow and understand

Prerequisites:

Before you begin, you should have access to the following tools from your local machine:

Creating AWS AutoScaling Group

AWS AutoScaling Group - AWS Auto Scaling groups (ASGs) let you easily scale and manage a collection of EC2 instances that run the same instance configuration. I can then manage the number of running instances manually or dynamically, allowing me to lower operating costs. Since ASGs are dynamic, Terraform does not manage the underlying instances directly because every scaling action would introduce state drift. We can use Terraform lifecycle arguments to avoid drift or accidental changes.

Also related to the youtube video - https://youtu.be/1UtEyacje98

image

Creating AWS IAM Policies

AWS IAM Policies - There are advantages to managing IAM policies in Terraform rather than manually in AWS. With Terraform, I can reuse these policy templates and ensure the principle of least privilege with resource interpolation.

In this tutorial, I will create an IAM user and an S3 bucket. Then, I will map permissions for that bucket with an IAM policy. Finally, I will attach that policy to the new user and learn how to iterate on more complex policies. Also related to the youtube video - https://youtu.be/gHDsv6K31bI

image

Creating simple AWS Infrastructure

Simple AWS Infratstructure - In this tutorial, I will use Terraform to create a simple AWS Infrastructure that comprises of VPC, Security group, public and private subnet, route table, internet gateay and finally EC2 instances.

Youtube video - https://www.youtube.com/watch?v=YBoIBZ5VSAU

image

Terraform provisioning EC2 instance with Jenkins, Docker and Sonarqube

Terraform-EC2-Jenkins-SonarQube - In this tutorial, I will use terraform to firstrly create a EC2 instance and a Security group. In addition to this I will create a shellscript that will upgrade the EC2 instance then install Jenkins and Docker. Following the Docker installation I will then run SonarQube from the docker image Also related to the youtube video - https://youtu.be/gHDsv6K31bI

image I have also added the Install.sh script for using Ubuntu as well as the AMI for t2.Large Ubuntu instance in the main.tf

Youtube Tutorial for this project - https://youtu.be/dutxZ1a1cmo

Terraform provisioning AWS EKS

AWS-EKS - This project demonstrates how to AWS EKS using Terraform. image

This video tutorial will guide you through the process of setting up a fully functional EKS cluster on AWS using Terraform's infrastructure as code capabilities. From creating VPC and subnets to deploying the EKS control plane and worker nodes, we'll cover all the essential steps.

Youtube Tutorial for this project - https://youtu.be/EMs9nQ6SPVQ

Deploying serverless applications with AWS Lambda and API Gateway

AWS-Lambda-Terraform - In this tutorial, I will deploy a NodeJS function to AWS Lambda, and then expose that function to the Internet using Amazon API Gateway. lambda-terraform

Youtube Tutorial for this project - https://youtu.be/7W_7Ck4_f8w

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published