Task Description?? ?? Create High Availability Architecture with AWS CLI ??
Nitin Tilwani
Serving Notice Period | SDE@ DevOps engineer at Nykaa | Python | RHCSA | Docker | Kubernetes | Ansible | AWS | Kong || RHCE Certified
??So moving Step by Step ...
STEP1:- Creating Security Group so that we can use further while creating instances.
STEP2:- After this we will modify the security so that we can connect our aws console by ssh protocol.
STEP3:- After this , we will launch an instance with the security group that we created in previous steps.
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 .
STEP5:- After we created EBS , now we have to attach the EBS to our O.S (instance)
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.
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.
STEP8:- After creating partition , you have to format the disk so that you can create inot table .
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.
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.
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.
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.
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 .
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
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 .
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.
?
Software Engineer @ FinSpectra | Platform Developer-1 Certified Salesforce Developer | Salesforce QA Tester
4 年Love this Nitin Tilwani