gscale-Global Scale: An automation tool for scaling your content or application over AWS CloudFront

What is CDN and how it’s being used?

Source
Source
Source
Source

Where gscale comes into play?

How to use gscale?

Source: Shubham bhalala
aws ec2 create-security-group --description "gscale-security-group" --group-name "gscale"
aws ec2 authorize-security-group-ingress --group-name gscale --protocol tcp --port 22 --cidr 0.0.0.0/0
aws ec2 run-instances --image-id ami-052c08d70def0ac62 --count 1 --instance-type t2.micro --key-name arthkey --security-group-id sg-0f7c9e78ad9cf23a9
aws ec2 create-volume --volume-type gp2 --size 1 --availability-zone ap-south-1a
aws ec2 attach-volume --volume-id vol-0e708aab6da539244 --instance-id i-0ceb50862eff63a2c --device /dev/sdf
1. Listing the devices
ssh -i arthkey.pem ec2-user@65.0.11.243 "sudo fdisk -l"
2. Formatting device
ssh -i arthkey.pem ec2-user@65.0.11.243 "sudo mkfs.ext4 /dev/xvdf"
3. Installing HTTPD software
ssh -i arthkey.pem ec2-user@65.0.11.243 "sudo yum install httpd -y"
4. Mounting the formated drive
ssh -i arthkey.pem ec2-user@65.0.11.243 "sudo mount /dev/xvdf /var/www/html"
5. Checking the status of httpd
ssh -i arthkey.pem ec2-user@65.0.11.243 "sudo systemctl status httpd"
6. Starting the httpd service
ssh -i arthkey.pem ec2-user@65.0.11.243 "sudo systemctl start httpd"
7. Permenantly starting the service
ssh -i arthkey.pem ec2-user@65.0.11.243 "sudo systemctl enable httpd"
8. Again checking the status
ssh -i arthkey.pem ec2-user@65.0.11.243 "sudo systemctl status httpd"
9. Listing the active partition mounted
ssh -i arthkey.pem ec2-user@65.0.11.243 "sudo df -h"
10. Installing git
ssh -i arthkey.pem ec2-user@65.0.11.243 "sudo yum install git -y"
aws s3api create-bucket --bucket shubhambhalala --acl public-read-write --region us-east-1
aws s3api put-object --acl public-read-write --bucket shubhambhalala --key /image/shubham.png --body F:\shubham.png
aws cloudfront create-distribution --origin-domain-name shubhambhalala.s3.amazonaws.com --default-root-object //image/shubham.png
1. Cloning git repo for website code
ssh -i arthkey.pem ec2-user@65.0.11.243 "sudo git clone https://github.com/AnonMrNone/gscale.git"
2. Copying files to document root
ssh -i arthkey.pem ec2-user@65.0.11.243 "sudo cp gscale/index.html /var/www/html/"

--

--

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