- Create the key and security group which allow the port 80.
- Launch EC2 instance.
- In this Ec2 instance use the key and security group which we have created in step 1.
- Launch one Volume (EBS) and mount that volume into /var/www/html
- Developer have uploded 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
-
Notifications
You must be signed in to change notification settings - Fork 1
Gaurav-2001/terraform-infra-ebs-s3-cloudfront
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Creating an Infrastructure in AWS using Terraform
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published