Posts

Showing posts from June, 2020

Automation On AWS by Using Terraform

Image
by:- SHIVANGI SAXENA How can we set up an Infrasture of AWS by using Terraform? What is Terrafrom ? Terraform Cloud is a free to use SaaS application that provides the best workflow for writing and building infrastructure as code with Terraform. Share infrastructure as code Empower your team to rapidly review, comment, and iterate on Infrastructure as Code. Task Synopsis 1. Create the security group which allow the port 80. 2. Launch EC2 instance. 3. In this Ec2 instance use the key and security group which we have created in step 1. 4. Launch one Volume (EBS) and mount that volume into /var/www/html 5. A developer has uploaded the code into GitHub repo also the repo has some images. 6. Copy the Github repo code into /var/www/html 7. Create S3 bucket, and copy/deploy the images from Github repo into the s3 bucket and change the permission to public readable. 8 Create a Cloudfront using s3 bucket(which contains images) and use the Cloudfront URL to update in code in /var/www/html. Steps