Skip to content
/ EFS Public

Configured a http server with persistent storage by EFS(Elastic file system)

Notifications You must be signed in to change notification settings

sahil2019/EFS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

EFS(Elastic File Sysytem)

  • Launched an EC2 instance on aws, used http sever to lauch a simple website.
  • Stored the static part of website code in s3 bucket and used cloudfront to access it.
  • Used Efs for storage so that even after the Ec2 instance crashes the code of website intact .
  • We can launch another instance and attach The Efs storage to get our data back.

Installation

aws configure

It will ask the secret key, access key and the region.The access and secret key can be obtained from Aws dashboard.

  • Install terraform and make a profile in aws so as to not expose our secret key
aws configure --profile sahil

It will ask for secret key and access key.

  • Initialize a folder with
terraform init
  • Run the below command to run the code
terraform apply --auto-approve
  • To destroy the setup run
terraform destroy --auto-approve

About

Configured a http server with persistent storage by EFS(Elastic file system)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages