How to integrate Cloudfront , S3 , Apache Webserver using AWS CLI

  1. using AWS Console (WebGUI/WebAPP)
  2. AWS SDK
  3. AWS CLI
AWS CLI Version
  1. Webserver configured on EC2 instance
  2. Document root (/var/www/html) made persistent by mounting on EBS block device
  3. Static Objects used in code such as pictures stored in S3
  4. Setting up content delivery Network using CloudFront & using the origin domain as S3 bucket.
  5. Finally place the CloudFront URL on the webapp code for security & low latency.
key-pair creation
key-pair creation
Subnets
Security Group
Security Group
AMI Image ID
AWS EC2 Instance creation
Security Group
EC2 Instance Creation
EBS Volume
EBS Volume Creation
EC2 Instance Storage
Attaching EBS Volume to EC2 instance
EBS Volume attached to EC2 Instance
httpd installation on EC2 instance
Web Page
Webpage launched successfully
s3 bucket creation using AWS CLI
empty bucket
copy local file to S3 Bucket
file uploaded to S3 bucket
CloudFront Architecture
CloudFront distribution creation
CloudFront created

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store