AWS Infrastructure using Terraform

AWS Infrastructure using Terraform


No alt text provided for this image

Terraform is an open-source tool created by HashiCorp. It is used for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions.

Start using

No alt text provided for this image
No alt text provided for this image

Here I have created a infrastructure using HCL (Hashicorp Configuration Language) which consists of

EC2 instance with configured Apache Server

  • For Key Pair
No alt text provided for this image
No alt text provided for this image
  • Security Group allowing inbound traffic of HTTP and SSH protocol only.
No alt text provided for this image
No alt text provided for this image
  • EBS Volume
No alt text provided for this image
No alt text provided for this image
  • Finally, Instance
No alt text provided for this image
No alt text provided for this image

Hosted Site using the IP of the Instance

No alt text provided for this image

S3 bucket with Public Access, consisting of all the data of GitHub repository

Configuring S3 bucket and bucket policy for Public Access

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

CloudFront Distribution for S3 bucket

Configuring CloudFront Distribution

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

CodePipeline

CodePipeline for fully managed continous delievery that automatically copy the updates or pushes of GitHub repository into S3 bucket respectively.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

For Clearing your Infrastructure

No alt text provided for this image


Nice writeup Sparsh Agrawal - have you look at other ways of writing infrastructure as code?

To view or add a comment, sign in

More articles by Sparsh Agrawal

  • AWS Infrastructure using Terraform IV

    Task : Perform task-3 with an additional feature to be added that is NAT Gateway to provide the internet access to…

  • AWS Infrastructure using Terraform III

    Task : We have to create a web portal for our company with all the security as much as possible. So, we use Wordpress…

  • AWS Infrastructure using Terraform II

    Task : 1. Create Security group which allow the port 80.

  • DevOps Project I

    End to end automation and for this I have created three JOBS in Jenkins DevTeam, TestTeam, ProductionTeam. Here is the…

Others also viewed

Explore content categories