Infrastructure as Code-Terraform Demo

Infrastructure as Code-Terraform Demo

Task-To create a website hosting infrastructure on AWS using EC2 instances, S3 Buckets, CloudFront Distributions, Github, and to automate it using code written on Terraform.

Step 1- Create the S3 bucket, put the image(s) on the S3 bucket, and create a CloudFront distribution for the bucket for faster content delivery.

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

Step 2- Create a Security group, EC2 Instance, EBS for the instance, Mount the storage to the instance, Run code on the instance and install necessary tools such as Git and HTTPD, Clone Github Repository containing code into /var/www/html folder and restart HTTPD server.

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

Step 3- Visit the website to check if all configurations are successful or not

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

The running EC2 instance

No alt text provided for this image

The created security group

No alt text provided for this image

The created bucket with the image

要查看或添加评论,请登录

Vineet Dugar的更多文章

社区洞察

其他会员也浏览了