🔶 Webserver configured on EC2 Instance
Starting aws instance:
Installing and starting httpd service on AWS instance:
🔶 Document Root(/var/www/html) made persistent by mounting on EBS Block Device.
lanching new EBS volume:
Attaching EBS volume to instance:
Creating new partition:
Formatting the partition:
Mounting this partition with /var/www/html floder:
🔶 Static objects used in code such as pictures stored in S3
Creating a new bucket:
Copying static image to s3 bucket:
🔶 Setting up Content Delivery Network using CloudFront and using the origin domain as S3 bucket.
Creating new cloudfront:
🔶 Finally place the Cloud Front URL on the webapp code for security and low latency.