Download Aws handwritten notes fundamentals and more Cheat Sheet Advanced Computer Programming in PDF only on Docsity!
| on-demand: Vir aap 7 a Cloud» Comp puting § “Tt pr ovides ! nf rastructure ite 1s ee: per! use . _ - 2% _ * emer rS t i ’ — & AWS > Bh ‘ _ be [Azure 22% 6° ; — 7 c oogle Cloud 4 8% ttsC—CSSS : “I —~ WE AWS[Amazon } Heb Services) ____ [Resources 33 = EC2 fnstance Hea Stand elastic Cloud compute a. SS (simple Storage service ) * : ie : VPC (Virtual: private cloud ) toad balancer | [Elastic ~~ Beanstalk ‘Lambda | Database (RDS, Dynamodiy) etc * (Servers th data Centre can be accessed Femotdy TTh Windows Server We ase ROP (Remote Desktop _ | protocol ) 7 [= Linux Server We use _SSH (Secured shell) 5 pc For data. transfer: CO ETP (File Transfer Protocol) : usin FTP we can transfer bullkk data over th fnternel. ‘loud Computing : kend they have data centers Bis eae. have data center fn US, EU India, Cha | 1 | —— @ The [Fation — +hr’s ar” FPS: [an amazon.com —~e. | They have _fnte rated : with hel of "So ~~ padkstack/ opens Ik these Softuare clatq Fhucire - we cah integrate data Zenfes teat which | a pectslacl Ee Maencesed by redhall pretact — ~ @. “Openstack is open Gina — Note: [It you lean open stack fl means you are alle to create Your oun Cloud ehvironrnent : 1 ae https: /Jaws.amazan.cor | [ \ paglestack / Openstaclkf [ wt (US EU IN ~ TCH * (Cloud Computing types a. public cloud = Y shared tnfrastructure foi account holders eg’ AWS, Azure, qoagle cloud etc / — be private cladd :- Infrastructure’ 1 dedicated for | ‘stng| 2 customel- igh a ° ee c. Hyd cloucl :- Combination «of public & private (or on-premite ) : te = {| = — ne _ | = Se I po fa et ——- ———__._ aT aT , “Traditional TaaS Raa SaaS | ae => ae ———=Npplicatfons T1 A pplicatrons Te 4 Application a Applicator —ppppliations fy [| Appiations fr A | — lpata gy | Data — (& 4 Data 5) |Data _ YS] [Runt ?me Ail Runtime |, pjRuntirne é Runtime 2 IMiddleware |S) | Middleware HE | lteddfevenre () [tated fenar o | fC ull & a La . “Et |o/s 40/3 2 | |O/s L| [O46 a0 Virtualization|2., 7] Virtualfzatfonfe | Mitual’za tion) sp [Virtual fete ~ | |Servers S3| [Servers _ |B} [Servers RE} |Servers Storage ES| | Storage | [Storage Storage 7 Ne tuatking > OU Netwarl ing J “at Netyarling LN etwork ir Ug og a How to deploy Ec2 instance On cloud? Tt you have alread y account fn AWS dws.amazon.com —? Sign in — Authentrcatron code —> Submit 4 EC2 Click ]—7 Instances > Launch tnstances SG Name :Linuxec2—> Create new key palr 7 Key par names Linuxec2 7 Create key parr 9 Allow HTTP traffic from the tnternet > Launch Instance —y Yinstances 4 QS ° OFIbYCHI64 106048d —% Connect —> Ussh [copy ]—> Open command prompt! : 2cd Downloads 7 a “7 paste — ames es This te the virtual Server fie have created on AWS This example Of ‘TaaS “He create O/s | - _§$ sudo su — E yum fnstall httpd [it fo web ser geil Z. ot will fnstall apache create a data cd /varfan/ htm) i go Lear/vivy) 5 SN Scho “Tndfa_t Great” > thdexchiml TN Hsystemctl start hitpd a, | systemet| enable httpd — nn, a P Cur] localhost nL « — : ~ - _Df-oF9bu cyi6tio! b078d — pubit (Pv4 address Teo EX New W tab [Paste] rer
Launch tnstances 9 [Narn Ifnux1 | Select Amazon: Linux —> +2.micro byl [Select] 3 Create new Key Petr —? Key Pair name? Us |Creafe key par —? Configu gue stata x Add new Volum | {x 20416 Magnetfe : sl Srey elect — Launch inch [-ce 7 tstances SS Refresh ( QO -_ $e | Firmware ; Ibsa small softuare Stored in ROM Read a Memory’) ; I a Ga Comperier hrsadticnea Wi eaanitd 7] | system, LA mh ae | on _ fF curl localhost oo le chrome [ei apen HEB peg XX re CSS. com/Free- css-templates — Dovinload - 1 any temjlate > wh, % Download | oy ~ Copy | link . Laddress — | KC ommand | pr ompt paste » Notepad — then type cornmand EF rge! orig EFanzlp healet.zip ris ed healet-htmi/ ols rcp -a * ../ > Enter i HE Ls hed is Hr) -rf healet- htm! tes -rf healet. zip Ls Hesyetern ctl Start htt pd treystemct! enctle htt pel _ Hurl localhost os Linux 1 Instance ID [click |-9 Public TPV4 ade —> Security 4 Security group EP (Cope k Unt] 9 _< Edit inbound tules > Frid rule 3 HTTP pel ——|[email protected]:0:0/0 7 Save tules oat i le , 4 |\Gteps wer ae a ie Attach — ex extra Ble ( per ot ——T Command ron Npt (pe tant : a ae accun deta 5 — ae 1c ails be aa partition with detains of disks Ittached and” 7 sues [dey/xvdo [ere reate tuo te partitions - list menu options} 1008 each] a aS eee n [ create nen partitions OF volumes J ———— p Sa 4 —_ 2043 +tloq H Pp 2 Enter Enter W fdiek -L 3 ft will Show 2 Partition 3. Create file systen/For mat the voluene/partition _ fttmkfs -t xfs pe des ——— Emkfs -t xts /dev/yvdb2 2 — SS u. Create two folder for “yolume mounting —___— mkd tr feos [par ~Jrnedliafpart2 ee el 5 Mount tt Te ee Edit, file f nano Jetc/fstab aaa I ee =——T | 0 _ 1 —TComman Prompt a ee —=—=— NG ree ree -L —tradiek _ Aefde ip a _ OR ae Se | Enter 2 era eee oe +104 $$ ‘Enter _aaem|, [n an ‘Enter [Enter Enter I W ly tteisk J ttm kdir /meclia/partS [nedra/ part ot vi JetcfFstab | Esc > wg! dtnano etc/fstab [dev/xvdet — /medigparts —x{s defaults. O 0 dev/xvde 2 / media/party xfs defaults 0 O ctr!+O =Save Enter a __ Ctr +X = Exit Hf cat [etc/fstab ae démount -a fin_efs -t xfs Imkfs —-t xfs Bt aba ee dev/xvde1 is? te dev/xvde2 he — “|VPc: Virtual Private cloud . your private hetwork on AWS cloud . ~L. =By default Lype pet festa is” already avai. [Getty [And withtn default, no. of Sulbnets also availa [Lone sulonet per avatlalbil ity zone f Ss aval fab) 1 AUS-amazon.com free Sigh fh > VPC [Search] > ype3- VPC | Create VPC 4 Name tag: YvPCOL—> TPv¥ CIOR dheck (0:0:0:0/16 ~ Create Ve = |Subnets 4 Create subnet > VPC TD: wee ee aT “Sulonet | Subnet namec Pubsetbnet — TPv¥ subnet CIDR block: 10.0.0.0/24 Create Subnet Create subnet =» VPCO2 [Select ]5 Subnet Name: pvtsub |-net > LPv¥ subnet CIDR black: 10.0.1 0/24 > Create subnet 9 Subnet ID? Be—click Route | By default 2 route -tdbles availale Rename > talles | PubRT S-Sy+R4 — PubRgt Route fable TID [click | Sulonet associations =) Edrt Subnet associatfons = ‘Pubsabaes [4-5 Save assocfations—» Route fabless ‘Create toute talsle — Name: PvtRI9G VP Co2 [Select }>_ Create toute table — SuloneE associations — Edit subne associations —7 Pvtsut (> Save assaclations Interne} Create Tnternet_gatenay “?Names T¢hio1—> qatenay) Create fnternet _gatertay ~? Actions: [Attach tov > vPCO2 [Select [4s Attach Pnternet enan Route table PubRT> PubRT Route “table ID [click —Edrt routes > Add routes => Bastinghion: ~~~ 0.0.0:0/o —7 ¥~7_Internct Gateway] Select] . W-[Clicl ]> Select lah => ale Shes 7 —s Sls 3. re — | $ pvtecs “Wissh paste BN Hoy fT ee a [Ste 0 ™ ——feshmed Wes myecd.pern OS pis — tea fb i — |F4s dl a — pdere Bisa _paste ar eat _— | ping '9-0-0.(35 no Worle * 8 pnd 10: 0-136] [no work J —— ——_——_, 2 eRe eee Instance 5 Et pwtec2 => Security pecan gop [Ele le] Tink > Edi inbound” rules —» Adrule AU TCMP- TRY 10:0:0-0/16 —7 Save tules [Command Prompt _Sping 10:0:1. 6] [worked] LS pvtec2 ssh paste L worked) g ping 10-00. [35 worked] $ ping google - com no Worked F Le 7 1) ‘ NAT VPc[ Search | — VPcs— vpco2 Ip ~ Nat Yatemay> _ jotenay Create Nat gateway —» Name: NATOL > & pubsubnet”, Allocate Etastic Ip [ Clrcte =>! Create Nat. ateway —> Route table = PART 10? © Edit routes = Add roufe 0-00:0/6 > NAT Gateny/ [Select] Save changes a 1 F Command prompt ~~ Eping_gegeon =e) | Page No, | _ er Lr a ne ae ——— es a dealray —itrstaetare x Tn 7 —— a ——jjee2 > > fnstances 3 prtec a pubecd - ~3 Th ’Tnstance “state : > Terminate (delete) 1 instance han, Terminate ee 7 —— instance _ — ee ‘ ——_— > VPC Route table ~ pvtRT TD- Edit routes 5 "Remove —? Save Changes — subnet association 3 “Selected subnets > Save Assoctation > route, table > pubRT “ID — Edit routes Remove —? Save clang — subnet neegutatons [Selected subnets (R] My Save association uae t gateway—» @NATO1— Action > Delete NAT Gate | cay —~ delete > Delete 3 [Finger met Gateway ~» [4AIGWO1 > Action: Detach eae VPC 9 Delete Emternet Gateway —> ‘Elastre [Ps — [§ 4 Action t Release Elasti Tp ‘dddress ~~ Release all Tnternet Gateway — (S 1qW01 Action + Detach From vec — Delete “Intermet Gateway > EY IGHOL — Delete Trnternet Gateway delete > | Delete. ee Action: Delete VPC > delete Delete. Ee | ——|_—_—__—— IT Ineromerties Bucket Versioning — Edit 3 Backes versioning * Enable + Save cl fanges > epr | ate 8 ICreate-text folder | Desk top] => Save + Upload 5 ——~"Add files —? Select this frie ~ Upload ~ Click “document link 3 Oloject ORL [Click ]fine > Close > 4 Uploaded file > Actioni Malce pubire sat arr Male public —y Refresh page — Access ab] Tedd f?fe > Save Upload — Add files > Select Pile 9 Upload — Close > latest file shown 9 o> show versions | on]> hen file > click link 3 Oloject. Url copy) paste hentdle 9 No access 3 Object actions: Make public using ACL > Mate publics Refresh page > Accessalble {| \| | payalsargar93-9 Select file 1 — Delete ~ delete 7 | Delete “objects — Close I! ‘Route 55 Its a DNS Service provicied by AHS We 7 > ez - Ts port number of DNS | _ # | IONS:- Dorin Name System ; ~ IONS resolve Host name (FQDN ) to TP address © vice versa ee leg, re W- fe. vy SN WH og com _ Ses _# | Reute 53: store Thformaiton Ti Fhe. far Sor wecere o.B Read Host vecord, resolve hostname to TL ‘dddiess: [dress to to. PTR Record: Pointer Record , Resolve TP acer |. Hostname Gh ath de A ee €-© Name Record: Conanical Name Record. We ¢ Provide _alternat e to FANON. se a aa domatn Name t- a-.google -com Want acg~ Same — appltcatfon usin poral »G00 Je-cor — S ’ NS Recard | Name “Server ecord. List no. of ~ aed | BNS (Name) Setvers fn your network. [© 80A Record: Start of Authority record. This [record gets automatically created durlhg orgy |.of zone ONE Ser Eh mt Seana: EE _ Containg information | about DNS Serpe, & sevral timer — tnformatfon —_ x | nr ae | aS, ee — __ * Route 53:- — ee ___% | Private “hosted Zone: “Hf we want to access ej | instances With its name instead of TIP addra ‘within vec |Requivement’: clomain name (fec. local) [Note We can give any name. This fe not acces (outside VPC Ug : b- (Pullfc hosted dns: We can access our applicatio using publically accessible domain name inst fof TP address |Requivernent : Real domatn name (we need to | purchase) - TCreate Sthgle VPC tere i 7 : ="/VeC [Search ]—> VPCS > Create VEC > Name 4g (eC name: VPCOL > TPV4Y CTOR — (0.0.0.0 167 jCreate VPC _— 7 Al a 0 ~ Subnet name’ PublicSulonet —7 CIOR sicko —— Zs Create subnet > Subnetname: ae : Tevy Subnet CIOR block : 10.0.1.0 24> Cre j Tenthnet [This PCS Downloads > ecamy- pen > Open Wh INotepad —> Copy [clata] + Command ‘prompt Cle le r > paste =~ Esc tg! er Pt) bis -L | r ere [Schmodl Yoo ec2my.pem cae ee ($ds ~l ee ee | = ‘nstanes 9 private ec2 [lnk }—> Connect Cop, Teas Py] Ssh), [Command Prompt Copy [ss IS paste | “yes [$ ping lo-0-05|S pop ES Start ping | tnstances 2 Securty — Securty groups? Linle > Edit ‘tnbound rules > Add rule 3 All ICMP-TPy4 3 | |Q.0.0.0.0/0 Save rules ; | Swe Search toute53— Creat hosted zone — google.com My domain name 3 © Private Hosted Osteo _ Chose vegion: US East (N- Virginia) VEC TOs VP —> Create’ hosted Zones Create record — Rea name: public eca 7 Record “type: [A- Routes trafft) + Value: 1o0.0-0+ a4 Create records > Create veo — Record name: privateec2 value: 10-0.1.1957 Create records VPC > VPCOTT IME] Chek 3 Actions— dit VPC settings > iia Enable 0? hosthames 7 Save > NT | Page no.) Date | ca | = ——— Do | See — [Command prompt | pin laaoals ee | pirld pubec2. SG le. COM a se «Public hosted zone‘ We ‘can, acess “our « applicator ‘Web Setver using FaON (Real’) fnstead at Tp address. VpcowW Public Subnet Pubec2 r public fp 4 private ip \ Fa Configure website [Command prompt _$ [00,1195 "link paste $ ping pubec2- gemgss com alle } $ ex $ sudo dnt fnstall httpd ay _ “$sudo sy - — $ced var/ Liy/h tn] - a lesa mE Welcome +o Devops class” > fhdex-htm| ot system ctl start http 7 ae stemct! endble httpel De pele pateedaie curl focal hos