Posts

Task 2 - Hybrid Cloud

Image
  TASK 2  WebServer With EFS , S3 and Cloudfront Using Terraform by : - SHIVANGI SAXENA TASK OBJECTIVES : - Create Security group which allow the port 80 Launch EC2 instance. In this Ec2 instance use the existing key or provided key and security group which we have created in step 1. Launch one Volume using the EFS service and attach it in your vpc, then mount that volume into /var/www/html The developer has uploaded the code into Github repo also the repo has some images. Copy the Github repo code into /var/www/html Create S3 bucket, and copy/deploy the images from github repo into the s3 bucket and change the permission to public readable. Create a Cloudfront using s3 bucket(which contains images) and use the Cloudfront URL to update in code in /var/www/html. TASK IMPLEMENTATION STEP 1: Specify the Provider Provider is used to specify the cloud provider that we are going to use in terraform.Here we are using AWS as a provider. STEP 2: Creating key-pairs A key pair, consisting of a pr