Set up Web Application with EFS on AWS cloud using Terraform

  1. Create Security group which allows inbound connection on port 80 for http
  2. Create the key-pair
  3. Create VPC, Subnet, Internet gateway, Route table
  4. Launch EC2 instance using above security groups & key-pair
  5. Launch one Volume using the EFS service and attach it in your vpc, then mount that volume into /var/www/html
  6. Developer have uploaded the code into github repo also the repo has some images.
  7. Copy the github repo code into /var/www/html
  8. Create S3 bucket, and copy/deploy the images from github repo into the s3 bucket and change the permission to public readable.
  9. Create a Cloudfront using s3 bucket(which contains images) and use the Cloudfront URL to update in code in /var/www/html
AWS Configure
Key-pair
VPC , Subnet & IGW
security group
Launch EC2 instance
EFS Volume creation
Mount EFS Volume
S3 bucket creation & image upload
Cloud Front Set up
Terraform Init
EC2 Instance Launch
Security Group
EFS Volume
S3 bucket created
Image uploaded into S3 bucket

--

--

--

Cloud Professional experienced in BFSI ,Telecom, Insurance domain with fortune 500 clients spread across USA, Europe, Canada, Australia and India.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Introduction to Caching

Design Patterns in Java

USPS Shipping Calculator

Announcing Space Pool — A Chia Farming Pool

Becoming a Dev: Week 1

Everything About Hashmap

Deploy webserver on AWS using Ansible Dynamic inventory

Core Banking Software Development

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Arvind Ramugade

Arvind Ramugade

Cloud Professional experienced in BFSI ,Telecom, Insurance domain with fortune 500 clients spread across USA, Europe, Canada, Australia and India.

More from Medium

Setting up GitHub Actions to Deploy Front-End Code on AWS S3 and Cloudfront

Configure Custom domain name & SSL certificate for a Netlify website

Best Two Factor Authentication Plugins WordPress

Increased Productivity: A CLI for Scraping