Implementation of Cloud Front
Amazon CloudFront is a content delivery network operated by Amazon Web Services. Content delivery networks provide a globally-distributed network of proxy servers that cache content, such as web videos or other bulky media, more locally to consumers, thus improving access speed for downloading the content.
This is basic service which is used behind every aws service because it provides following facility or profit
Reduce latency
Provide Global private network
Increase security
provide ultra network connection
Task Description*📄
🔰 *Create High Availability Architecture with AWS CLI* 🔰
🔅The architecture includes-
- Webserver configured on EC2 Instance
- Document Root(/var/www/html) made persistent by mounting on EBS Block Device.
- Static objects used in code such as pictures stored in S3
- Setting up Content Delivery Network using CloudFront and using the origin domain as S3 bucket.
- Finally place the Cloud Front URL on the webapp code for security and low latency.
First of all we need create key , security , instance , EBS storage and many steps like them
Step1: Create key
Step2: Create the security and add inbound rules
Step 4: We created the instance using above key and security group
Step 5: We created the volume by command aws ec2 create-volume — availability-zone ap-south-1a — size 1
Step 6: We attach the volume
Step 7: We make partition by command fdisk /dev/sdf and format it by command mkfs.ext4 /dev/sdf1 and mount on the folder /var/www/html
Step 8:We created the bucket and upload image in it
Step 9: We make public the image
Step 10:We created the cloud front distribution
Step 11: We install httpd software
Step 12: We created the code index.html
We have desired output by accessing public link and establish desired architecture