Task Description??

?? Create High Availability Architecture with AWS CLI ??

Task Description?? ?? Create High Availability Architecture with AWS CLI ??

??So moving Step by Step ...

STEP1:- Creating Security Group so that we can use further while creating instances.

No alt text provided for this image

STEP2:- After this we will modify the security so that we can connect our aws console by ssh protocol.

No alt text provided for this image

STEP3:- After this , we will launch an instance with the security group that we created in previous steps.

No alt text provided for this image

STEP4:- Now we will create an EBS because if by mistake , our O.S gets corrupts , than our will be secured in EBS(a kind of persistence storage) and we will never loose our data .

No alt text provided for this image

STEP5:- After we created EBS , now we have to attach the EBS to our O.S (instance)

No alt text provided for this image

STEP6:- Now that we have to find public I.P of the instance that we launched , so for that we want information of or launched instance.

No alt text provided for this image

STEP7:- Now to check if your hard disk is connected or not , use command $ fdisk -l , and there it will show . After checking , you have to do partition of that hard disk.

No alt text provided for this image

STEP8:- After creating partition , you have to format the disk so that you can create inot table .

No alt text provided for this image

STEP9:- After formatting table , you have to mount it to a particular location. So i mounted to the httpd location so that i can store my data in EBS.

No alt text provided for this image

STEP10:- After mounting to it , then create a html file and store the data inside it. And leave the IMG URL empty because will put but afterwards when we will create cloudfront.

No alt text provided for this image

STEP11:- After this , we will launch S3 because the static things have more availability and durability in S3. So I created a bucket of name ntilwani and i have this bucket a security of public-read.

No alt text provided for this image


STEP12:- After this we will upload object onto this bucket and will do this object as public access. The command is only the first line and the second line is the output of first line. And here as you notice I have shifted to desktop by cd Desktop.

No alt text provided for this image

STEP13:- So after that I will create cloudfront. So cloudfront is a service which works on the concept CDN(Content delivery network). Content delivery networks provide a globally-distributed network of proxy servers which cache content, such as web videos or other bulky media, more locally to consumers, thus improving access speed for downloading the content. It decrease the latency for the users who are browsing that content. This service saves the caches in nearest edge location with respect to user .

No alt text provided for this image

STEP19:- In previous step, they will give the cloudfront.net domain name , so you have to browse from other ip device so that they will give you the protocol 'https' and copy the link with that protocol and paste it to the html file that we have created and also give the image name also. For example

No alt text provided for this image

STEP20:- Now you have to browse the file with the URL public_ip/html_filename. Here we will use aws instance public_ip and we will also use the html filename that we created. For example , 35.154.68.211/nitin.html .

No alt text provided for this image

As you can see , the image is here with the content that I wrote in body tag of nitin.html.

So by following these steps , you can configure the webserver by aws cli.
By this you will also come to know the power of CLI over GUI.
?




Prabhjeet Singh

Software Engineer @ FinSpectra | Platform Developer-1 Certified Salesforce Developer | Salesforce QA Tester

4 年

Love this Nitin Tilwani

要查看或添加评论,请登录

Nitin Tilwani的更多文章

社区洞察

其他会员也浏览了