This repo contains 2 projects to deploy webserver using CloudFront, S3 & EC2 as Project1 and Project2.
In First Project, EBS is used for storage with EC2 so that it can be persistent and also we are creating the snapshot of the volume.
The full stepwise implementation you can see on my blog:
https://medium.com/@saurabhagarwal43800/deploy-webserver-by-integrating-aws-with-terraform-b140df425d4d?source=friends_link&sk=c23b7f663f3d10d37b9a990033866aef
In Second Project, EFS is used for storage with EC2 which allows us to mount the file system across multiple regions and instances.__
The full stepwise implementation you can see on my blog:
https://medium.com/@saurabhagarwal43800/deploy-webserver-with-cloudfront-using-aws-900c7cbdd90a
You can run the code with the following commands in the respective projects:
- terraform init
- terraform apply -auto-approve