AWS Infrastructure using Terraform
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
Here I have created a infrastructure using HCL (Hashicorp Configuration Language) which consists of
EC2 instance with configured Apache Server
- For Key Pair
- Security Group allowing inbound traffic of HTTP and SSH protocol only.
- EBS Volume
- Finally, Instance
Hosted Site using the IP of the Instance
S3 bucket with Public Access, consisting of all the data of GitHub repository
Configuring S3 bucket and bucket policy for Public Access
CloudFront Distribution for S3 bucket
Configuring CloudFront Distribution
CodePipeline
CodePipeline for fully managed continous delievery that automatically copy the updates or pushes of GitHub repository into S3 bucket respectively.
Nice writeup Sparsh Agrawal - have you look at other ways of writing infrastructure as code?