You are on page 1of 61

Thi
nkExcel
l
ence,
Liv
eExcel
l
ence”

Pr
act
icalf
il
e
Cl
oudComput
ing
(
BTCS701)

Submi
tt
edt
o: Submi
tt
edby
:
Mr
.Vi
j
ayPr
akash Ri
ti
kOl
i
ya

18100BTCSE02727

I
IIy
ear(
VIsem)
CS-
B

Rit
ikOli
ya
18100BTCSE02727
Code:
BTCS-
701Subj
ect
-Cl
oudComput
ing Sessi
on:
2020-
21
Semest
er-
VI

Tabl
eofcont
ent
Sno. Dat
eof Exper
iment Remar
k
per
for
mance

1 I
nst
all
ati
onandconf
igur
ati
onofVMwar
e
&Vi
rtual
Box.

2 Ser
vicedepl
oyment&Usageov
ercl
oud
usi
ngGoogleAppEngi
ne

3 ManagingCl
oudComput
ingResour
ces
Sol
uti
onbyIBM Smar
tCl
oud

4 Usi
ngexist
ingcl
oudchar
act
eri
sti
cs&
Ser
vicemodels.

 Wor
kingandinst
all
ati
onof
Mi
crosof
tAzure.

 .JavaAppl
i
cat
iondepl
oyment
wit
hAzure.

5 Appl
i
cati
ondepl
oymentpr
ocesson
AmazonWebServi
cesEC2.

6 Appl
i
cat
ionofdat
abasest
orageusi
ng
byAWSS3

7 Appl
i
cat
ionDepl
oymentwi
thHer
oku.

8 I
nst
all
ati
onandconf
igur
ati
onofAneka.

9 Int
egrat
ionofappl
icat
ions&
confi
gurat
ionofOpenstack.

10 Appl
i
cat
ionofAWSCl
oud9.

Rit
ikOli
ya
18100BTCSE02727
Exper
iment
:-
1

Ai
m:-I
nst
all
ati
onandconf
igur
ati
onofVMwar
e&Vi
rt
ual
Box.

I
NTRODUCTI
ON-

Or
acl
eVM Vi
rt
ual
Boxi
sacr
oss-
plat
for
mvi
rt
ual
i
zat
ionappl
i
cat
ion.

●Foronet
hing,i
tinst
all
sony
ourexist
ingI
ntel
orAMD- basedcomputer
s,whethert
heyar
e
runni
ngWindows,MacOSX,Linux
,orOracl
eSolar
isoperati
ngsyst
ems( OSes)
.

●Secondl
y,i
text
endsthecapabi
l
iti
esofyourexi
sti
ngcomput
ersot
hati
tcanr
unmul
ti
ple
OSes,i
nsi
demulti
plev
irt
ualmachines,
atthesametime.

WHYI
SVI
RTUALI
ZATI
ONUSEFUL?

Thetechni
quesandf
eat
urest
hatOr
acl
eVM Vi
rt
ual
Boxpr
ovi
desar
eusef
uli
nthef
oll
owi
ng
scenar
ios:

●Runni
ngmul
ti
pleoper
ati
ngsy
stemssi
mul
taneousl
y

●Easi
ersof
twar
einst
all
ati
ons.

●Test
inganddi
sast
err
ecov
ery
.

●I
nfr
ast
ruct
ureconsol
i
dat
ion.

FEATURESOVERVI
EW

1.
Port
abi
li
ty:Or
acl
eVM Vi
rt
ualBoxrunsonalar
genumberof32-bi
tand64-bithostOS.VM
Vi
rt
ualBoxisaso-
cal
l
edhostedhyper
visor
.Nohar
dwar
ev i
rt
ual
izat
ionrequi
red.

2.
Greathar
dwaresuppor
t:Amongot
hers,
OracleVM Vi
rt
ual
Boxsuppor
tsGuest
mult
ipr
ocessi
ng(SMP)&USBdev i
cesupport

3.
Har
dwar
eCompat
ibi
l
ity

4.Multi
scr
eenr esol
uti
ons:Oracl
eVM Vir
tual
Boxvi
rt
ualmachi
nessuppor
tscreenr
esol
uti
ons
manyt i
mest hatofaphysicalscr
een,
all
owingt
hem tobespr
eadoveral
argenumberof
screensatt
achedt othehostsyst
em.

5.
VM gr
oups:
Oracl
eVM Vir
tual
Boxprovi
desagroupsfeatur
et hatenablest
heusert
o
or
gani
zeandcont
rolv
irt
ual
machinescol
l
ecti
vel
y,aswellasindivi
duall
y.

6.
Cleanarchi
tect
ureandunprecedent
edmodulari
ty:
Oracl
eVM Virt
ualBoxhasanextremely
modulardesi
gnwithwell
-def
inedint
ernal
progr
ammi ngi
nter
facesandacleansepar
ationof

Rit
ikOli
ya
18100BTCSE02727
cl
i
entandser
vercode.

St
ep1:

Gototheht
tps:
//www.v
irt
ual
box.
org/
wiki
/Downl
oadsandgett
hel
atestv
ersi
onofVi
rt
ual
BoxforWi
ndowshosts.

St
ep2:

Opent
heVir
tual
BoxEXEf
il
e.Got
othelocati
ont
owhichtheEXEf i
l
edownl
oadedanddoubl
e
-
cli
ckt
hefi
l
e.Doingsowi
l
lopent
heVir
tualBoxi
nst
all
ati
onwindow.

St
ep3:

Aft
erdownl
oadi
ng,r
untheexecutabl
etobegi
ninst
all
i
ngthesof
twar
e.Wheny
oust
artt
he
i
nstal
l
ati
on,
youshouldgetapromptli
ketheonebel
ow.

Rit
ikOli
ya
18100BTCSE02727
St
ep4:

Nav
igat
ethr
ought
hei
nst
all
ati
onpr
ompt
s.Dot
hef
oll
owi
ng:

●Cl
i
ckNextont
hef
ir
stt
hreepages.

●Cl
i
ckYeswhenpr
ompt
ed.

●Cl
i
ckI
nst
all

●Cl
i
ckYeswhenpr
ompt
ed.

Rit
ikOli
ya
18100BTCSE02727
St
ep5:

Dur
ingthei
nstal
lat
ionwizard,y
ou’l
lgetaNetworkI
nter
faceswarning.Cli
cky estoproceed.
I
fyou’
reint
heprocessofdownl oadingorcopyi
ngf
il
esanddata,thiswilli
nterr
uptyour
net
workconnecti
onbri
efly.So,maybepausethepr
ocessorwaituntilyou’
redonebef ore
i
nstal
l
ingVi
rtual
Box.

Rit
ikOli
ya
18100BTCSE02727
St
ep6:

Cl
ickFini
shwhenpr
ompted.I
t'
sinthelower
-r
ightsi
deoft
hewi
ndow.Doi
ngsowi
l
lcl
oset
he
i
nstal
l
at i
onwi
ndowandopenVirt
ualBox.

St
ep7:

Nowt
haty
ou'
vei
nst
all
edandopenedVi
rt
ual
Box
,youcancr
eat
eav
irt
ual
machi
nei
nor
dert
o
r
unanyoper
ati
ngsy
stem ony
ourPC

Rit
ikOli
ya
18100BTCSE02727
Exper
iment
-2

Ai
m:-Ser
vicedepl
oyment&Usageov
ercl
oudusi
ngGoogl
eAppEngi
ne

I
ntr
oduct
ion
GoogleAppEngi ne(oftenr ef
err
edtoasGAEorsi mplyAppEngi ne)isawebf ramewor kand
cloudcomput ingplatformf ordevel
opingandhostingwebappl icat
ionsinGoogl e-
managed
datacent er
s.Applicati
onsar esandboxedandr unacrossmul ti
pleservers.AppEngi neoff
ers
automat i
cscalingforwebappl i
cati
ons—asthenumberofr equestsincreasesf oran
appli
cation,AppEngi neaut omati
call
yall
ocatesmor eresourcesforthewebappl i
cat
iont
o
handletheaddi ti
onaldemand.Googl eAppEngi neisfreeupt oacer t
ainlevelofconsumed
resourcesandonl yinst andardenvi
ronmentbutnotinf l
exibl
eenv i
ronment .Feesar e
chargedf oraddit
ionalst or
age,bandwidt
h,orinst
ancehour srequir
edbyt heappl i
cat
ion.

Feat
uresofAppEngi
ne
Runt
imesandLanguages

YoucanuseGo,
Java,PHPorPythontowri
teanappengineappl
i
cat
ion.Youcandevelop
andt
estanappl
ocall
yusi
ngtheSDKcontaini
ngtool
sfordepl
oyi
ngapps.Ever
ylanguage
hasi
tsownSDKandrunti
me.Yourcodeisexecut
edina:

●Jav
a7env
ironmentbyJav
arunt
ime

Rit
ikOli
ya
18100BTCSE02727
●Py
thon2.
7env
ironmentbyPy
thonr
unt
ime

●PHP5.
4env
ironmentbyPHPr
unt
ime

●Go1.
2env
ironmentbyGor
unt
ime

Gener
all
yAv
ail
abl
eFeat
ures
Thesearecover
edbythedepr eciat
ionpoli
cyandtheservice-
lev
el agreementoftheapp
engi
ne.Anychangesmadet osuchaf eat
urearebackward-compat i
bleandimplementat
ion
ofsuchafeatur
eisusual
lystable.Theseincl
udedatastorage,r
etrieval
,andsearch;
communicati
ons;pr
ocessmanagement ;computat
ion;appconfigurati
onandmanagement .

●Dat
astor
age,r
etri
eval
,andsearchincl
udef
eat
uressuchasHRDmigrat
iont
ool,
Googl
e
Cl
oudSQL,l
ogs,datast
ore,
dedicat
edMemcache,blobst
ore,
Memcacheandsear
ch.

●Communicati
onsi
ncl
udef
eat
uressuchasXMPP.Channel
,URLf
etch,
mai
l
,andGoogl
e
Cl
oudEndpoint
s.

●Pr
ocessmanagementi
ncl
udesf
eat
uresl
i
keschedul
edt
asksandt
askqueue

●Comput
ati
oni
ncl
udesi
mages.

●Appmanagementandconfi
gur
ati
oncov
erappident
it
y,user
s,capabi
li
ti
es,t
raf
ficspl
i
tti
ng,
modul
es,
SSLforcustom domai
ns,
modules,
remoteaccess,
andmul t
it
enancy.

I
nst
all
ati
onofGoogl
eAppEngi
ne
TheAppEngineSDKall
owsyoutor
unGoogleAppEngi
neAppl
icat
ionsony
ourlocal
comput
er.I
tsimul
atest
herun-
ti
meenv
ironmentoft
heGoogl
eAppEnginei
nfr
astruct
ure.

Pr
e-Requi
sit
es:
Pyt
hon2.
7

I
fyoudon’thaveal
readyhav
epy
thon2.
7inst
all
edi
nyourcomput
er,
downl
oadandI
nst
all
Pyt
hon2.7from:

ht
tps:
//www.
pyt
hon.
org/
downl
oads/

Downl
oadandI
nst
all

Youcandownl
oadt
heGoogl
eAppEngi
neSDKbygoi
ngt
o:

ht
tps:
//st
orage.
googl
eapi
s.com/
appengi
ne-
sdks/
feat
ured/
Googl
eAppEngi
ne-
1.
9.85.
msi

Rit
ikOli
ya
18100BTCSE02727
Thencl
i
ckonnextandsett
hei
nst
all
ati
onpat
hforGoogl
eAppEngi
ne

Af
terset
ti
ngt
hei
nst
all
ati
onpat
hcl
i
ckonnextandt
hencl
i
ckonI
nst
all
.

Oncet
hei
nst
all
ati
onhascompl
etedcl
i
ckonFi
nish

Rit
ikOli
ya
18100BTCSE02727
Wor
kingofGoogl
eAppEngi
ne
Maki
ngy
ourFi
rstAppl
i
cat
ion

Rit
ikOli
ya
18100BTCSE02727
Nowy ouneedt
ocreateasi
mpleappl
i
cation.Wecoul
dusethe"
+"opti
ontohavet
he
l
aunchermakeusanappli
cat
ion—butinsteadwewil
ldoi
tbyhandtogetabet
ter
senseofwhati
sgoingon.
Makeafol
derf
oryourGoogl
eAppEngi
neappl
icat
ions.Iam goi
ngt
omaket
he
Fol
deronmyDeskt
opcall
ed"apps"—t
hepat
ht ot
hisfolderi
s:
C:
\Document
sandSet
ti
ngs\
csev
\Deskt
op\
apps
Andthenmakeasub-
fol
deri
nwi
thi
nappscal
l
ed"
ae-
01-
tr
ivi
al"—t
hepat
htot
his
fol
derwoul
dbe:
C:
\Document
sandSet
ti
ngs\
csev
\Deskt
op\
apps\
ae-
01-
tr
ivi
al

Usi
ngatextedi
torsuchasJEdit(
wrv
uv.j
edit
.or
g),
creat
eaf
il
ecal
l
edapp.
yaml
int
he
ae-
01-
tr
ivi
alf
olderwit
hthefol
lowi
ngcontent
s:
appl
i
cat
ion:
ae-
01-
tr
ivi
al
v
ersi
on:
1
r
unt
ime:
pyt
hon
api
_ver
sion:
1
handl
ers:
-ur
l:/
.*
scr
ipt
:index.
py

Thencr
eat
eaf
il
eint
heae-
­01-
­tr
ivi
alf
oldercal
l
edi
ndex.
pywi
tht
hreel
i
nesi
nit
:
pr
int'
Cont
ent
-Ty
pe:
text
/pl
ain'
pr
int'
'
pr
int'
Hel
l
other
eChuck'

Thenstartt
heGoogl
eAppEngi
neLauncherpr
ogr
am t
hatcanbef
oundUnder
Appl
icati
ons.
UsetheFi
le-­>AddExisti
ngAppli
cati
oncommandandnav igat
eintot
heapps
dir
ect
oryandsel
ecttheae-
­01-­triv
ialfol
der.Oncey
ouhaveaddedtheappl
i
cat
ion,
sel
ecti
tSothatyoucancontr
olt
heapplicat
ionusingt
hel
auncher.

Rit
ikOli
ya
18100BTCSE02727
Onceyouhaveselect
edyourappl
icat
ionandpressRun.Af t
erafewmoment sy
our
appl
i
cati
onwillst
artandt
helauncherwil
lshowal i
tt
legreenli
connextt
oyour
appl
i
cati
on.ThenpressBrowsetoopenabr owserpoint
ingatyourappl
i
cat
ionwhi
ch
i
srunni
ngathttp:
//l
ocal
host:
8080/
Pastehtt
p:/
/local
host
:8080i
ntoy
ourbr
owserandy
oushoul
dseey
ourappl
i
cat
ion
asfoll
ows:

Shut
ti
ngDownt
heSer
ver
Toshutdowntheser
ver
,uset
heLauncher
,sel
ecty
ourappl
i
cat
ionandpr
esst
he
St
opbutton.

Rit
ikOli
ya
18100BTCSE02727
Exper
iment
-3

Ai
m:-Managi
ngCl
oudComput
ingResour
cesSol
uti
onbyI
BM Smar
tCl
oud.

I
ntr
oduct
ion

TheIBM SmartCloudbrandincludesinf
rastr
uctur
easaservice,soft
wareasaserv
iceand
pl
atf
orm asaser vi
ceoffer
edt hroughpubli
c,pri
vat
eandhybr i
dclouddeli
ver
ymodels.I
BM
pl
acestheseofferi
ngsunderthr eeumbrell
as:Smart
CloudFoundation,
SmartCl
oudServi
ces
andSmar t
CloudSolut
ions.

SmartCloudFoundationconsi st
soft heinfr
ast
ructur
e, har
dware,
prov i
sioni
ng,management ,
i
ntegrati
onandsecur i
tyt hatserveast heunderpinni
ngsofapr i
vateorhy br
idcloud.Bui
lt
usi
ngt hosefoundati
onal component s,PaaS,I
aaSandbackupser vicesmakeupSmar tCloud
Servi
ces.Runningont hiscl oudplatf
orm andinfr
astructur
e,Smart
Cl oudSolut
ionsconsistof
anumberofcol labor
ation, analyt
icsandmar keti
ngSaaSappl i
cati
ons.

IBM al
sobuildscloudenv i
ronmentsforcl
ientsthatar
enotnecessaril
yontheSmartCloud
Plat
form.Forexampl e,f
eaturesoftheSmar t
Cloudplat
form—suchasTi v
olimanagement
soft
wareorI BM SystemsDi r
ectorvi
rt
uali
zati
on—canbei ntegr
atedsepar
atel
yaspartofa
non-I
BM cloudplatform.TheSmar t
Cloudplatfor
m consi
stssolelyofI
BM har
dware,softwar
e,
serv
icesandpr acti
ces.

I
BM Smar t
CloudEnterpr
iseandSmartCloudEnt er
pri
se+compet ewi t
hproductsl
ikethoseof
RackspaceandAmazonWebSer vi
ces.ErichClementi,vi
cepresi
dentofGlobalTechnology
Servi
cesatIBM,sai
din2012t hatt
hegoal withSmar t
CloudEnter
priseandSmar t
Cloud
Enter
pri
se+wast oprovi
deanAmazonEC2- li
keexperiencepri
maril
yf ort
estand
devel
opmentpurposesandt oprov
ideamor erobustexperi
enceforproduct
ionworkloads.

Bef
orey
oubegi
n

●Ensur
ethatyouruserhastheaccessright
sthatarerequi
redt
oaddfi
l
est
othel
ocat
ion
whereyouwanttoinstal
lI
BM SmartCloudAnalyt
ics-LogAnaly
sis.

●Useanon-
rootusert
oinstal
lIBM Smar
tCl
oudAnal
yti
cs-LogAnal
ysi
s.Youmustusea
userwhoi
snotarootuser.

●Ify oupreviousl
yinstal
ledIBM Tivol
iMonit
ori
ngLogFileAgent6.3orlower,thei
nst
all
ati
on
fai
ls.Tosol vethisproblem,stoptheexi
sti
ngIBM Tiv
oli
Monitori
ngLogFi leAgent
i
nst all
ati
onorr enamet hefoldert
hatwascreatedwhenitwasinstal
led.Fordetai
l
ed
i
nfor mation,seethetopicabouttheinst
all
ati
onfai
lurei
fIBM Ti
voliMonitori
ngLogFil
e
Agentwasi nstal
ledintheTroubleshoot
ingGuidef
orIBM SmartCl
oudAnal yti
cs-Log
Anal ysi
s.

●Beforeyouinstal
lIBM SmartCl
oudAnalyti
cs-LogAnal
ysis,
youmustensuret
hatthe
detail
sforeachhostserveraremaintai
nedcorr
ect
lyi
ntheetc/host
sdi
rect
oryonthetar
get
system.Foraregularservert
hatusesastati
cIPaddr
ess,defi
nethest
ati
cIPaddr
essand
therequir
edvaluesinthefoll
owingformat
:

Rit
ikOli
ya
18100BTCSE02727
I
P LONG-
HOSTNAME SHORT-
HOSTNAME

ForaDynamicHostConf
igurat
ionPr
otocol(DHCP)ser
vert
hatusesaloopbackIPaddr
ess,
defi
net
heloopbackIPaddressandtherequir
edval
uesint
hefol
lowi
ngf or
mat:

LOOPBACK-
IP LONG-
HOSTNAME SHORT-
HOSTNAME

TologintoIBM Smart
CloudAnal
yti
cs-LogAnaly
sisaft
ery
ousetuptheDCHPser ver,
use
theFull
yQuali
fi
edDomainName( FQDN)orthehostnametol
ogin.YoucannotusetheIP
addressasyouwouldfornon-
DHCPserver
s.

Aboutt
hist
ask

Wheny ourunt
heinst
all
ati
onscri
pt,I
BM Smart
CloudAnalyt
ics-LogAnal
ysi
sandI BM
Inst
all
ati
onManagerVer
sion1.
7ar ei
nstal
l
ed.Wherenecessary,I
BM Smar
tCloudAnal
yti
cs-
LogAnalysi
supgr
adesthecurr
entl
yinst
all
edversi
onofIBM Inst
all
ati
onManager.

I
nst
all
i
ngI
BM Smar
tCl
oudAnal
yti
cs-LogAnal
ysi
s

Pr
ocedur
e

1.
Copyandext
ractt
hei
nst
all
ati
onar
chi
vet
oal
ocat
ionony
ourser
ver
.

2.
From t
hedi
rect
oryt
owhi
chy
ouext
ract
edt
hei
nst
all
ati
onf
il
es,
runt
hecommand:

.
/i
nst
all
.
sh

3.
Cli
ckNext
.TheI
nst
all
Packagesscr
eendi
spl
ays.

4.
Toinstal
lIBM Smart
CloudAnalyt
ics-LogAnal
ysi
sinthedef
aultdi
rect
ory,cl
ickNext.To
i
nstal
lIBM SmartCl
oudAnaly
tics-LogAnaly
sist
oadiff
erentl
ocati
on,cl
ickBrowse,select
analt
ernat
ivel
ocati
on,andcli
ckNext.

5.
Cli
ckNextaccept
ingt
hedef
aul
topt
ionf
ort
heI
BM LogFi
l
eAgent
.

6.Thedefaul
tport
sthatar
eusedbyIBM SmartCloudAnal
yti
cs-LogAnaly
sisar
edispl
ayed.
Acceptthedefaul
topti
oni
fthesepor
tsarenotinusebyanyotherappl
i
cati
onorchange
them i
fnecessary
.Cli
ckNext.

7.I
fyouwanttoinstal
lal ocalinst
anceofI BM InfoSphereDat aExplorer,ensurethatt
heIBM
I
nfoSphereDataExplorer9.0checkboxi ssel
ect ed.Thecheckboxi ssel ectedbydefault
.If
youwanttouseal ocalinstal
lati
onofI BM Inf
oSpher eDataExpl or
er, y
oumusti nst
all
itnow.
Youcannotinst
alli
taftertheIBM Smar tCl
oudAnal yti
cs-LogAnal ysisisinstal
led.However,
youcaninst
alli
nstancesofI BM InfoSphereDat aExploreronr emotemachi nesaf t
erthe
i
nstal
lat
ioni
scompl eted.Toenabl esear chandi ndexi
ng,y oumusti nstal
latleastone
i
nstanceofIBM I
nfoSpher eDat aExplorerl
ocall
yorr emot ely
.

8.
Rev
iewt
hesummar
yinf
ormat
iont
hati
spr
ovi
dedf
ort
hei
nst
all
ati
onandcl
i
ckI
nst
all
.

9.
Tocompl
etet
hei
nst
all
ati
oncl
i
ckFi
nish.

Rit
ikOli
ya
18100BTCSE02727
I
BM Smar
tCl
oudNot
esI
nst
all
ati
on

Bef
orey
oubegi
n

Youradmini
str
atorwi
llmaketheNotesinst
allki
tavai
labl
etoy ou.Foll
owt heinstr
ucti
ons
provi
dedtoyoubyyouradmini
strat
ort
odownl oadtheinst
allki
ttoy ourcomput er
.For
i
nformati
ononsupport
edv er
sionsoft
heclient,
seetheIBM Smar t
CloudNot escli
ent
requi
rement
s.

Aboutt
hist
ask

Thest
epsi
nthi
spr
ocedur
edescr
ibehowt
oinst
all
Not
esonMi
crosof
tWi
ndows.

Pr
ocedur
e

1.
Shutdownal
lappl
i
cat
ions.

2.
Obt
aint
heNot
esi
nst
all
ati
onki
t.

3.
Uni
nst
all
anyNot
esBet
ainst
all
ati
ons.

4.
Sav
ethei
nst
all
ati
onki
ttoal
ocal
fol
der
,forexampl
e,onWi
ndows,
toy
ourC:
\t
empf
older
.

5.
Nav
igat
etot
hef
olderi
nwhi
chy
ousav
edt
hei
nst
all
ati
onki
t.

6.
Locat
eandr
unt
hei
nst
all
ati
onexecut
abl
e.Forexampl
eonWi
ndows,
runSETUP.
EXE.

7.
Readt
hewel
comei
nfor
mat
ion,
andt
hencl
i
ckNext
.

8.
Readandacceptt
hel
i
censeagr
eementt
erms,
andt
hencl
i
ckNext
.

9.
Ent
ery
ournameandt
henameofy
ouror
gani
zat
ionandt
hencl
i
ckNext
.

10.Acceptt
hedef
aul
tinst
all
dir
ect
oryorspeci
fyadi
ff
erenti
nst
all
ati
ondi
rect
ory
,andt
hen
cl
ickNext.

11.
Sel
ectt
hef
eat
uresandsub-
feat
urest
oinst
all
,andt
hencl
i
ckNext
.

●Ifyouarei
nstall
i
ngver
sion8.
5.2orl
ater
,theser
vicei
nstantmessagi
ngcommunitycanbe
i
ntegrat
edint
ot heNot
escli
ent
.Toenablethi
sfeat
ure,sel
ecttheSameti
me(i
ntegr
ated)
opti
on.

●Ifyouarei nst
all
i
ngv er
sion8.5.
2orlat
er,
andyouhaveaConnect
ionsCl
oudsubscri
pti
on,
ConnectionsCloudAct i
vi
tiescanbeaddedtot
heNotessi
debar
.Toenabl
ethi
sfeature,
selectt
heI BM Connecti
onsopt i
on.

Rit
ikOli
ya
18100BTCSE02727
I
BM Smar
tCl
oudNot
esConf
igur
ati
on,
Connect
ingt
oamai
lSer
ver

Bef
orey
oubegi
n

Befor
eyousetupsetupNot
est
oconnectt
oamai
lser
veri
ntheser
vice,
compl
etet
he
fol
l
owingpr
ocedures:

●Loggi
ngi
ntot
heser
vicef
ort
hef
ir
stt
ime

●I
fy ouhav
enotinst
all
edandsetupt
heNot
escl
i
ent
,compl
etet
hepr
ocedur
esI
nst
all
i
ng
NotesandSet
ti
ngupNot es.

Forhy
bri
denvi
ronments,
inwhichy
oucont
inuet
ohav
eaccesst
oon-
premi
sesappl
i
cat
ion
ser
ver
satyourcompanysit
e:

●St
artt
heNot
escl
i
entandl
ogi
nwi
thy
ourNot
esI
Dfi
l
e.

●Makesuret
hatthecur
rentLocati
ondocumental
l
owsyoutoconnectt
oanon-pr
emi
ses
Domino®ser
ver.Thi
sstepensuresthaty
oucanswit
cht
otheLocati
onlat
ert
ouse
appl
i
cati
onsonyourcompanyser v
ers.

●Youmi ghthaveanexi sti


ngmai lfi
l
eonacompanyser verthati
sbeingtransf
err
edtoyour
mailser
v erint
heser v
ice.Inthiscase,st
atusmessagesdispl
ayaboutafinalr
epli
cat
ionof
yourmail f
il
eonthecompanyser vertoyourmailf
il
eont henewSmar t
CloudNotesmai l
serv
er.Makesur ethaty ougetconfir
mationofasuccessfulmai
lfi
l
et r
ansferbef
ore
conti
nui
ngorbr eakingoutoft herepli
cat
ion.

Aboutt
hist
ask

YourexistingNotesclientcanber unningorclosed.TheSmartCloudNot escli


ent
confi
gur ati
ontoollaunchesNotesf oryouifiti
sclosed.Aft
eryouhav ecompl etedthissetup,
aLocationdocumentcal ledSmartCloudforusernameisactiv
eandassoci at
edwi thaNot es
IDforSmar t
CloudNot es.Whil
ethisLocationdocumentisactive,youcansendandr eceive
mailthroughser v
ersint heser
vice,usecontacts,andschedul
emeet ingswi t
hot herser
vice
usersiny ourcompany .Locati
ondocument sarenotusedwiththewebcl ient.

Thefol
l
owi ngprocedureincl
udesst
epst
odownl
oadandr
unthecl
i
entconfi
gur
ationtool
manual
ly.Howev er
, y
oumi ghtr
ecei
veawel
comeemai
lwi
thaConfi
gur
ati
onbuttonthat
aut
omatest hesesteps.

Pr
ocedur
e

1.
Logintoht
tp:
//www.
ibmcl
oud.
com/
soci
alusi
ngy
ourser
vicel
ogi
nemai
laddr
essand
passwor
d.

2.
Iny
ourdashboar
dcl
i
ck,
cli
cky
ourphot
oandsel
ectDownl
oadsandSet
up.

3.
UnderI
BM Smar
tCl
oudNot
es,
cli
ckVi
ewI
BM Smar
tCl
oudNot
esopt
ions.

4.
Att
heWel
comet
oIBM Smar
tCl
oudNot
eswi
ndow,
cli
ckWi
thI
BM Not
escl
i
ent
.

5.
Ify
ouseet
heLet
ssety
ourI
BM Not
espasswor
dwi
ndow,
prov
ideapasswor
dfory
our

Rit
ikOli
ya
18100BTCSE02727
Not
esI
D,andt
henv
eri
fyi
t.Thencl
i
ckSetPasswor
d.

6.
Att
heSt
artusi
ngI
BM Smar
tCl
oudNot
eswi
ndow,
cli
ckDownl
oad.

7.
AttheSoft
wareLi
censeAgr
eementwindowfort
hecli
entconf
igur
ati
ont
ool
,sel
ecta
l
anguage,
agreetot
hetermsandcondi
ti
ons,
andcli
ckCont
inue.

8.
AttheYourdownl
oadwi
l
lst
arti
naf
ewsecondswi
ndow,
whenpr
ompt
edopent
he
downloadf
il
e.

9.
Not
esst
art
sifi
tisnotal
readyr
unni
ng.Whent
heJoi
nSmar
tCl
oudNot
eswi
ndowdi
spl
ays:

a.
Readt
hei
nfor
mat
ionpr
ovi
dedabouty
ouraccount
.

b.
Closeanyot
heropent
absandsav
eyourwor
k.

c.
Sel
ectIhav
ecl
osedal
lot
herNot
eswi
ndowsandt
abs.

d.
Cli
ckJoi
ntor
unt
het
ool
.

10.Whenconf
igur
ati
onhascompl et
ed,r
eadthepromptt
hati
sdi
spl
ayed,
sel
ectIhav
eread
theabove,
andthencl
ickYes.TheNotescl
ientexi
ts.

11.
RestartNotes.Yournameandy ournewLocat
ioni
sselect
edinthel
ogindi
alog.Donot
swi
tchlocati
onsatt histi
me.Ifyoudo,thedownl
oadwil
lfai
landyouwil
lhavet
or erunt
he
Smart
CloudNot esclientconf
igurat
iontool
.

12.
Logont oNot esusingyourNotesIDpassword.I
fyoupr ov
idedapasswordinSt
ep5,
ent
erthatpassword.Ifyoudidnotprovi
deapasswor dinStep5,ent
erthepasswor
dfory
our
cur
rentIDthatyoualsouset oconnectt
oserver
saty ourcompany.

13.
Cli
ckYesify
ouar epromptedtocreat
eacr oss-
cer
ti
fi
cat
ewhenf ir
staccessi
ngy ourmai
l
ser
veri
ntheservi
ce.Youmayseet hispromptinahybri
denvi
ronmentifyourNotesIDis
cer
ti
fi
edunderadiff
erentor
ganizat
ioncert
if
iert
hanyourmail
serveri
nt heser
vice.

Resul
ts

Youcannowlogontotheservi
cewi t
hei
thert
heNotescl
ientort
hewebcli
ent.Toret
urnat
alat
erti
meandusethewebclient
,logontohtt
p:/
/www.i
bmcloud.com/
soci
alusi
ngyour
weblogi
nemailandpasswor
d.

Rit
ikOli
ya
18100BTCSE02727
Exper
iment
-4

Ai
m:-Usi
ngexi
sti
ngcl
oudchar
act
eri
sti
cs&Ser
vicemodel
s.

 Wor
kingandi
nst
all
ati
onofMi
crosof
tAzur
e.

 .Jav
aAppl
i
cat
iondepl
oymentwi
thAzur
e.

WORKI
NGANDI
NSTALLATI
ONOFMI
CROSOFTAZURE.

I
nst
all
ati
onofMi
crosof
tAzur
e

St
ep1:
Get
ti
ngSt
art
ed

1.
Downl
oadandi
nst
all
WindowsSer
ver2012R2

2.
LaunchSer
verManager

I
nt heServ
erManagerdi
alog,
wit
hint
heLocal
Ser
verPr
oper
ti
es,
cli
ckont
heI
EEnhanced
Securi
tyConf
igur
ati
onli
nk

3.
Int
heInternetExpl
orerEnhancedSecur
ityConf
igurat
iondi
alog,
changet
heset
ti
ngf
or
Admi
nist
ratorsfrom “
On( Recommended)”to“Of
f“,t
hencli
ckOK

Rit
ikOli
ya
18100BTCSE02727
St
ep2:
Inst
all
i
ngWebSer
verI
ISRol
e

1.
Int
heSer
verManagerdi
alog,
cli
ckonManager>AddRol
esandFeat
ures

2.
OntheInst
all
ati
onTypescr
een,
ensur
ethatt
he“
Rol
e-basedorf
eat
ure-
basedi
nst
all
ati
on”
i
ssel
ected,t
hencli
ckNext

Rit
ikOli
ya
18100BTCSE02727
3.
OntheServerSelect
ionscr
een,
ensur
ethecor
rectser
veri
ssel
ect
ed(
mor
ethanl
i
kel
ythe
l
ocal
host
),t
henclickNext

4.
Ont
heSer
verRol
esscr
een,
sel
ectWebSer
ver(
II
S)

5.Amidstt
hedi
alogt
oaddaddit
ional
l
yrequi
redfeat
ures,cl
i
ckAddFeat
uresont
heAdd
Featur
esThatAr
eRequi
redForWebServer(
IIS)di
alog,t
hencl
i
ckNext

Rit
ikOli
ya
18100BTCSE02727
6.
Ont
heFeat
uresscr
een,
ensur
ethat“
.NETFr
amewor
k3.
5“,
and“
ASP.
NET4.
5”i
ssel
ect
ed.

7.OntheRoleServi
cesscr
een,
ensur
ethef
oll
owi
ngi
ssel
ect
ed(
inaddi
ti
ont
othedef
aul
t
select
ions)
,thencl
i
ckNext

-Appl
i
cat
ionDev
elopment>.
NETExt
ensi
bil
i
ty4.
5

-Appl
i
cat
ionDev
elopment>ASP.
NET4.
5

-Appl
i
cat
ionDev
elopment>I
SAPIExt
ensi
ons

8.
Ont
heConf
ir
mat
ionscr
een,
cli
ckI
nst
all

Rit
ikOli
ya
18100BTCSE02727
9.
Ont
heResul
tsscr
een,
cli
ckCl
ose

St
ep3:
Inst
all
i
ngMi
crosof
tWebPl
atf
ormI
nst
all
er

1.
Downl
oadt
hel
atestv
ersi
onoft
heMi
crosof
tWebPl
atf
ormI
nst
all
er

2.
Star
tthei
nst
all
ati
onbyl
aunchi
ngt
heWebPl
atf
ormI
nst
all
er_
amd64_
en-
US.
msi
fil
e

3.
Readandacceptt
heLi
censeAgr
eement
,thencl
i
ckI
nst
all

Rit
ikOli
ya
18100BTCSE02727
4.
Oncet
hei
nst
all
ati
oni
scompl
ete,
cli
ckFi
nish

St
ep4:
Inst
all
i
ngt
hePor
tal
andAPIExpr
essopt
ion

1.
Star
ttheWebPl
atf
ormI
nst
all
er

2.Ty
peAzurePackinthesear
chbox
.Cl
i
ckAddnextt
oAzur
ePack:
Por
tal
andAPIExpr
ess,
andthencl
i
ckInst
all

Rit
ikOli
ya
18100BTCSE02727
3. Acceptt
het
ermsandcondi
ti
onsont
hePr
erequi
sit
espage

4. Thei
nst
all
ati
onbegi
ns.Yourmachi
nemi
ghtr
est
artdur
ingt
hei
nst
all
ati
on

5.
Whent
hei
nst
all
ati
oni
scompl
eted,
ensur
ethatal
lInt
ernetExpl
orerwi
ndowsar
ecl
osed,

Rit
ikOli
ya
18100BTCSE02727
andt
hencl
i
ckCont
inuet
ost
artt
heSer
viceManagementConf
igur
ati
onsi
te

6.
TheConf i
gurati
onsit
ehtt
ps:
//l
ocal
host:
30101/opensi
nInt
ernetExplor
er.I
ftheI
nter
net
Expl
orersecur
itycer
ti
fi
cat
ewarningpagei
sdisplay
ed,cl
i
ckConti
nuet othi
swebsit
e

7.OntheDat abaseServerSetuppage,
entert
henameoft hedatabaseser
verori
nst
anceof
Microsof
tSQLSer v
er.Forsingl
emachineexpressdepl
oyments,t
hisi
sthesamemachine
you’
recurrentl
yinstal
l
ingto( WAPPort
al,
forexample)

8.
Selectthemodeofaut henti
cat
ionthaty
ouwantt
ouse,
SQLServ
erAuthenti
cat
ionor
WindowsAut hent
icat
ion.Forgui
danceonwhi
chmodetouse,
seeChoosingan
Authent
icati
onMode.

9.
Enterapassphr
asethati
stobeusedtoencr
yptandtodecry
ptdataintheConf
igur
ati
on
St
ore.Ent
erthepassphr
aseagai
ntoconfi
rmit
,andthencl
ickthenextar
row.

Rit
ikOli
ya
18100BTCSE02727
10.
Thef
eat
urest
hatar
etobei
nst
all
edar
eli
stedont
heFeat
uresSet
uppage

Rit
ikOli
ya
18100BTCSE02727
11.
Aft
erthefeat
uresar
esuccessf
ull
yconf
igur
ed,
cli
ckt
hecheckmar
kint
hebot
tom r
ight
cor
neroftheFeat
uresSet
up

12.
Togot ot
hemanagementpor
talforadmini
strat
ors,
openani nter
netbrowserandgot
o
htt
ps:
//l
ocal
host
:30091/
#Wor
kspaces/WebSystemAdmi nExt
ension/
quickSt
art

13.
Togot ot
hemanagementpor
talfortenant
s,openani
nter
netbr
owserandgot
o
htt
ps:
//l
ocal
host
:30081/
#Wor
kspaces/All
/dashboar
d.

Rit
ikOli
ya
18100BTCSE02727
14.Thefi
rstt
imethatyoulogontoeit
hert
hemanagementportalf
oradmini
str
ator
sorthe
managementportalfort
enant
s,atouroft
heport
ali
sdispl
ayed.Cl
ickt
hroughthepagesi
n
thetourf
oranint
roducti
ontothemanagementport
al.

Wor
kingofMi
crosof
tAzur
e
TheManagementPor
tal

TheManagementPor t
alisMi cr
osoftAzure’sweb- baseduseri
nter
face( UI
).It
’swhere
admini
strat
orscanaccesst hemaj ori
tyofthef eatur
es.Duetotheever-evol
vingnatureof
Micr
osoftAzure,t
heUIi sfr
equentlyupdated, sonewr el
easesareuploadedi nbetaviathe
Azur
ePr evi
ewPor t
al.Atthesamet i
me,Mi crosoftconti
nueswit
htheexi sti
ngUI,all
owing
youtotestandfamil
iari
sey oursel
fwithnewr el
eases.

Vi
rt
ual
Machi
nes

Mor eorganisat
ionsarepr ogr
essingtowardcr eati
ngv irt
ualmachi nesondemand, and
MicrosoftAzure’sI
nfrastr
uctureasaSer vice(IaaS)hasdr awnfav ourabl
er eport
s.Tomake
thi
swor k,you’l
lhaveoneormanyVi rtual
Har dDr i
ves( VHDs),whichar estoredinwhatAzur e
call
sstorageblobs.Thesecomecompl etewi t
hboot ableoperati
ngsy stemsi ncl
uding
Microsoft,
Linux,andSQLSer ver
,amongot her
s.Oncey ou’
vechoseny ourVHDf rom
MicrosoftAzure’sgall
eryofstock,youcanuset hist
ospeci fyaVi rt
ualMachi ne(VM)oft he
ri
ghtsize.Youcanal socopyt hecontentofy ourVHDi ntoyourlocalmachine.VMsar epaid
forbythemi nuteandonl ywhileyou’r
eusingt hem.Si milar
ly,
there’sasmal lchargeforuse
oftheVHD.

Websi
tes

Mi
crosof
tAzur
etakest
hemanagementofcl
oud-
creat
edwebsi
tesoutofy
ourhands,
giv
ing

Rit
ikOli
ya
18100BTCSE02727
youmor eti
metocr
eatecontent.Youcaneit
hercreat
ethewebsi
teinthecl
oudormigr
atei
t
i
ntothecloudatal
aterst
age.Youcant henchoosewhethery
ourunyourownVM fory
our
websit
eorshareaVM withothers.

Cl
oudSer
vices

Theideabehindthi
si sthaty oucanbuil
danapplicati
onint hecl
oudthatcanbeusedby
numerouspeoplesimultaneousl y
.Youcanalsodot hiswithoutf
earoflosi
ngyourworkor
bei
ngt i
edupwi t
hadmi ni st
rati
veduti
es.Azur
e’scloudserviceswor
kalongsideVM’sand
Azur
eWebsi t
est ofacil
i
t atethi
s,execut
ingvi
athecodel anguageyou’v
echosenforthe
appl
icati
onyou’v
ecr eat
ed.

Dat
aManagement

Microsofthascreatedamul ti
-f
acetedapproachtodatamanagementandstorageto
accountfort hevar
iat
ionindatarequir
ement sacr
ossnumer ousappl
i
cat
ions.Azur
etakes
careofrelati
onaldatastor
aget hr
ought hei
rSQLdatabase,whichi
ssimi
l
arbutmor e
extensi
vet hantheSQLser v
erdatabasey oumaybeusedt o.

LikethestandardSQLser verdat
abase,allst
andardrel
ati
onaldatabasemanagement
featuressti
ll
existandareaccessibl
ethroughfamili
ardataaccesstechnologies.However
,
themagi cli
esinthefactthatAzure’
sSQLdat abasetakescareofthetediousadmi ni
str
ati
ve
taskssuchashar dwaremanagementandsof twareupdateswhilesti
ll
all
owi ngy ouf
ull
controloveraccess.

Thestandar
dSQLdat
abaseoperat
esonshar
edhar
dwarebutapr
emi
um opt
ioni
sav
ail
abl
e
whichall
owsyout
ooper
ateyourowndedi
cat
edser
ver
.

St
orageTabl
esandSt
orageBl
obs

Storagetabl
esworkwheny ouhav ealotofty
pedinformat
ionthatdoesn’trequi
rerel
ati
onal
stor
age.Whilecomplexoperati
onsaren’
tsupport
ed,thegoali
stoal l
owf astaccesstothi
s
datawhil
eof f
eri
ngscalabl
estoragethatcanhol
dupt ooneterabyte.AzureBlobsaresi
milar
,
anddesignedtoholdunstr
ucturedbi
narydatasuchasv i
deofi
les.Thisisthesamest or
age
feat
urethathandl
esVM andAzur eWebsi t
ebackups.

Dat
aMi
grat
ion,
Fil
eShar
ing,
andNet
wor
king

Mi crosofthasn’tforgottentherealworldwithAzur e.Ifyou’reconcer nedt hatmi gr


atingyour
fi
lest oAzur ewi l
ltaketoomucht i
meandbandwi dt h,youhav et heabilit
yt ophy si
call
ysend
yourencr yptedf i
lestoMi cr
osoftforupload.Mi cr
osof twi l
lthenst oreyourdat ainAzur e
blobs, al
lowingy out othenlogonandal locatethem t otheirpreferredstor agedest i
nati
ons.
Thi sdataandanyappl i
cati
onscanal sobeshar edacr ossnumer ousVMsf oruser
collaborati
on.You’ llf
indthi
sv i
tali
fy ouneedt odiagnose, test,debug, ordev elopacross
mul ti
pleuser s.Youcanal sonet workthi
sdat aandr out etraff
icinternati
onal ly
,across
private,securenet works.MicrosoftAzureoperatesi nternati
onal datacentrest osupportthi
s.

Rit
ikOli
ya
18100BTCSE02727
.
Jav
aAppl
i
cat
iondepl
oymentwi
thAzur
e.

1)Fi
rstcr
eat
eaf
reeaccount
.

2)Cr
eat
eady
nami
cwebpr
ojecti
nEcl
i
pse

I
nEcl
i
pse,
sel
ectFi
l
e>New>Dy
nami
cWebPr
oject
.

Int
heNewDy namicWebPr
ojectdi
alogbox,
namet
hepr
ojectMy
Fir
stJav
aOnAzur
eWebApp,
andsel
ectFi
nish.

Rit
ikOli
ya
18100BTCSE02727
3)AddaJSPpage

I
fPr
ojectExpl
oreri
snotdi
spl
ayed,
rest
orei
t.

I
nPr
ojectExpl
orer
,expandt
heMy
Fir
stJav
aOnAzur
eWebApppr
oject
.

Ri
ght
-cl
i
ckWebCont
ent
,andt
hensel
ectNew>JSPFi
l
e.

Rit
ikOli
ya
18100BTCSE02727
I
ntheNewJSPFi
l
edi
alogbox:

●Namet
hef
il
eindex
.j
sp.

●Sel
ectFi
nish.

I
nthei
ndex.
jspf
il
e,r
epl
acet
he<body
></
body
>el
ementwi
tht
hef
oll
owi
ngmar
kup:

<body
>

<h1><%out
.pr
int
ln(
"Hel
l
oAzur
e!"
);%></
h1>

</
body
>

Sav
ethechanges.

Rit
ikOli
ya
18100BTCSE02727
4)Publ
i
sht
hewebappt
oAzur
e

I
nProjectExpl
orer
,ri
ght
-cl
i
cky
ourpr
oject
,andt
hensel
ectAzur
e>Publ
i
shasAzur
eWeb
App.

I
fyouar
epr
omptedwiththeAzur
eSignIndi
alogbox,
y ouwi
llneedt
ofoll
owthestepsinthe
Azur
eSi
gni
nInst
ruct
ionsfort
heAzureTool
ki
tforEcl
ipsear
ti
cletoent
eryourcr
edenti
als.

5)Depl
oyWebAppdi
alogbox

Af
tery
ouhav
esi
gnedi
ntoy
ourAzur
eaccount
,theDepl
oyWebAppdi
alogboxappear
s.

Sel
ectCr
eat
e.

Rit
ikOli
ya
18100BTCSE02727
6)Cr
eat
eAppSer
vicedi
alogbox

TheCr
eat
eAppSer
vicedi
alogboxappear
swi
thdef
aul
tval
ues.

Thenumber170602185241showni
nthef
oll
owi
ngi
magei
sdi
ff
erenti
nyourdi
alogbox.

I
ntheCr
eat
eAppSer
vicedi
alogbox:

●Enterauni
quenameforyourwebapp,orkeepthegenerat
edname.Thisnamemustbe
uniqueacr
ossAzur
e.ThenameispartoftheURLaddressforthewebapp.Forexampl
e:i
f
thewebappnameisMy JavaWebApp,t
heURLi smyjavawebapp.
azur
ewebsit
es.net
.

●Fort
hisqui
ckst
art
,keept
hedef
aul
twebcont
ainer
.

Rit
ikOli
ya
18100BTCSE02727
●Sel
ectanAzur
esubscr
ipt
ion.

●Ont
heAppser
vicepl
ant
ab:

Cr
eat
enew:
Keept
hedef
aul
t,whi
chi
sthenameoft
heAppSer
vicepl
an.

Locat
ion:
Sel
ectI
ndi
aoral
ocat
ionneary
ou.

Pr
ici
ngt
ier
:Sel
ectt
hef
reeopt
ion.Forf
eat
ures,
seeAppSer
vicepr
ici
ng.

AnAppSer vi
ceplanspeci
fi
esthelocati
on,
size,
andfeatur
esofthewebserv
erfarmthat
host
sy ourapp.Youcansavemoneywhenhost ingmult
ipl
eappsbyconf
igur
ingtheweb
appstoshareasingl
eAppServiceplan.

AppSer
vicepl
ansdef
ine:

●Regi
on(
forexampl
e:Nor
thEur
ope,
EastUS,
orSout
heastAsi
a)

●I
nst
ancesi
ze(
smal
l
,medi
um,
orl
arge)

●Scal
ecount(
1to20i
nst
ances)

●SKU(
Free,
Shar
ed,
Basi
c,St
andar
d,orPr
emi
um)

7)Resour
cegr
oupt
ab

Sel
ectt
heResour
cegr
oupt
ab.keept
hedef
aul
tgener
atedv
aluef
ort
her
esour
cegr
oup.

Rit
ikOli
ya
18100BTCSE02727
Aresour
cegroupisalogical
contai
neri
ntowhi
chAzur
eresour
cesl
i
kewebapps,
dat
abases,
andstor
ageaccount
sar edeploy
edandmanaged.

Sel
ectCr
eat
e.

TheAz
ureTool
ki
tcr
eat
est
hewebappanddi
spl
aysapr
ogr
essdi
alogbox.

8)Depl
oyWebAppdi
alogbox

I
ntheDeployWebAppdi al
ogbox,selectDepl
oyt
oroot
.Ifyouhaveanappser
viceat
wi
ngti
ptoy
s.azur
ewebsi
tes.
netandy oudonotdepl
oytotheroot
,thewebappnamed
MyFi
rst
JavaOnAzur
eWebAppi sdeployedto

wi
ngt
ipt
oys.
azur
ewebsi
tes.
net
/My
Fir
stJav
aOnAzur
eWebApp.

Thedi
alogboxshowst
heAzur
e,JDK,
andwebcont
ainersel
ect
ions.

Sel
ectDepl
oyt
opubl
i
sht
hewebappt
oAzur
e.

Rit
ikOli
ya
18100BTCSE02727
Whent
hepubl
i
shi
ngf
ini
shes,
sel
ectt
hePubl
i
shedl
i
nki
ntheAzur
eAct
ivi
tyLogdi
alogbox.

Congr
atul
ati
ons!Youhav
esuccessf
ull
ydepl
oyedy
ourwebappt
oAzur
e.

Rit
ikOli
ya
18100BTCSE02727
Exper
iment
:-
5

Ai
m:-Appl
i
cat
iondepl
oymentpr
ocessonAmazonWebSer
vicesEC2.

Ans

St
ep1:
Creat
eaKeyPai
r

Youwill
needtocreat
eakeypairt
oaccessy
ourv
irt
ual
machi
newi
thAmazonEC2.I
fyou
al
readyhaveakeypair
,ski
paheadtoSt
ep2.

St
ep2:
Ent
ert
heCodeDepl
oyConsol
e

a.
Cli
ckthehomeiconontheupperlef
tcor
neroft
heAWSManagementConsol
e.Fi
nd
CodeDepl
oyunderDev
eloperTool
sandcli
cktoopent
heAWSCodeDepl
oyConsol
e.

b.
Int
heAWSCodeDepl
oyConsol
e,cl
i
ckGetSt
art
edNow.

I
fyoualreadyhav
eappl
i
cat
ions,
lookt
other
ightcol
umnandcl
i
ckCr
eat
eDepl
oyment
Walkt
hrough.

c.Sel
ectSampl
eDepl
oymentandcl
i
ckNext
.

St
ep3:
LaunchaVi
rt
ual
Machi
ne

Youwillneedtol
aunchanAWSv ir
tual
machinetodeployyourcodeon.AWSv i
rt
ual
machinesareknownasAmazonEC2i nst
ances,orj
ust'i
nstances'f
orshor
t.I
nthisst
ep,
we
wil
ll
auncht hr
eeEC2inst
ancesusi
ngapre-conf
igur
edEC2t emplat
e.

a.Cl
ickthehomei conontheupperlef
tcorneroft
heAWSManagementConsol
e.Find
CodeDeployunderDevel
operToolsandcli
cktoopentheAWSCodeDepl
oyConsol
e.

Youwi
l
lconf
igur
eyouri
nst
anceset
ti
ngswi
tht
heopt
ionsbel
ow:

•Oper
ati
ngSy
stem: Youcanchooset
heOSofy
ourEC2I
nst
ance.Fort
hist
utor
ial
,wewi
l
l
useAmazonLinux
.

•I
nstanceType:Forthist
utor
ial
,thet
1.micr
oinstancet
ypehasbeensel
ect
edasthedefaul
t
val
uet ost
aywi t
hinthefr
eeti
er.AmazonEC2pr ovi
desawidesel
ecti
onofi
nst
ancetypes
opti
mizedtofitdi
ffer
entusecases.I
nst
ancetypescompri
sevaryi
ngcombi
nat
ionsofCPU,

Rit
ikOli
ya
18100BTCSE02727
memory,stor
age,
andnetworki
ngcapaci
tyandgiveyout
hef
lexi
bil
i
tyt
ochooset
he
appr
opr
iatemixofresour
cesfory
ourappli
cat
ions.

•KeyPai
rName:From t
hedrop-
downl i
st,
chooset
heAmazonEC2instancekeypai
ryou
creat
edi
nstep1,MyFir
stKey
,toconnecttot
heAmazonEC2inst
ances.Youcanalsochoose
akeypai
ryoual
readyhave.

•TagKeyandVal
ue: AWSCodeDepl
oywill
uset hi
stagkeyandv
aluet
olocat
ethei
nst
ances
duri
ngdepl
oyments.Youcanl
eavethedefaul
tval
ues.

St
ep4:
NameYourAppl
i
cat
ionandRev
iewYourAppl
i
cat
ionRev
isi
on

AWSCodeDepl oyusesappl
icationnamesdur
ingcodedepl
oymentst
omakesureiti
s
ref
erenci
ngthecorr
ectdepl
oy mentcomponents,
suchasthedepl
oymentgr
oup,
deploy
ment
confi
gurat
ion,
andappli
cati
onr evi
sion.

a.I
ntheAppl
icat
ionNamebox
,ent
erHel
l
oWor
ldast
henamef
ory
oursampl
eappl
i
cat
ion
andcl
ickNex
tStep.

St
ep5:
Creat
eaDepl
oymentGr
oup

Adeploymentgroupisasetofindivi
dualEC2inst
ancesthatCodeDepl
oydepl
oysrevi
sions
to.Adepl
oymentgr oupcontai
nsindi
vidual
l
ytaggedinst
ances,AmazonEC2inst
ancesin
AutoScal
inggroups,orboth.

I
ntheDeploymentGr
oupNamebox,
leav
ethepr
oposeddepl
oymentgr
oupname
(
DemoFleet)asi
s.

Youwillt
henspeci
fyt
heAmazonEC2inst
ancest
odepl
oybyent
eri
ngt
hekey
-val
uepai
rin
theSeachbyAmazonEC2Tagssect
ion:


TheKeyandVal
uecol
umnsshoul
dbeaut
opopul
atedwi
tht
hev
aluesf
rom St
ep3.

•TheInst
ancescolumndispl
aysthenumberofEC2i nst
ancesthatyouwi l
ldepl
oycodet
o.
Forthist
utor
ial
,wehavelaunchedandpre-confi
gur
edthreeEC2instancesandthese
i
nstanceshavealr
eadybeentaggedtogetherint
oadeploymentgroup.

St
ep6:
Creat
eaSer
viceRol
e

Inthi
sstep,youwill
grantAWSCodeDepl oypermissi
ontodepl
oyt oyourinst
ances.You
createarol
ef oranAWSser v
icewheny ouwanttograntper
missionstoaservicel
ike
AmazonEC2orAWSCodeDepl oy.Theseserv
icescanaccessAWSr esources,soyoucreat
e
ar ol
etodeterminewhattheserv
iceisall
owedtodowi t
hthoseresources.

Servi
ceRol
e:ChooseCreat
eanewser v
icer
ole.I
fyoual
readyhav
easer
vicer
ole,
youcan
chooseUseanexist
ingser
vicer
ole.

Rol
eName:
Youcanacceptdef
aul
tval
ueofCodeDepl
oy_
Hel
l
oWor
ld.I
fyouar
eusi
ngan

Rit
ikOli
ya
18100BTCSE02727
exi
sti
ngser
vicer
ole,
choosei
tfr
om t
heRol
eNamedr
op-
downl
i
st.

St
ep7:
Depl
oyYourAppl
i
cat
ion

I
nt hi
sstep,
wewillselectadepl
oymentconf
igur
ati
onandtheni
niti
atethedepl
oymentt
o
ourthr
eeEC2instances.Bytheendofthi
sst
ep,we'l
lhav
esuccessful
lydepl
oyedal
iveand
runni
ngwebsit
e,whichwecanv isi
tonl
i
ne.

a.Thedeploymentconf i
gurat
ionletsyoudeter
mi nehowmanyi nstancestosimultaneousl
y
deployyourappli
cati
onrevisi
onst oanddescri
best hesuccessandfail
urecondit
ionsforthe
deployment.Forexample,usi
ngt hedefaul
tconfi
gur ati
on(
“OneataTi me”),
ifyoudeploy
yourappli
cati
onto3i nst
ances,thisconfi
gurat
ionwi ll
depl
oytooneinstanceatat i
me.

Acceptt
heDef
aul
tDepl
oymentConf
igur
ati
onandcl
i
ckNextSt
ep.

b.
Rev
iewt
hedet
ail
sofy
ourdepl
oymentandcl
i
ckDepl
oyNow.

Not
e:Thi
scant
akesev
eral
minut
est
ocompl
ete.

c.Oursampler
evi
siondepl
oysasingl
ewebpaget
oeachi
nst
ance.Onceal
lthr
eei
nst
ances
arecomplet
ed,
cli
ckViewAllI
nst
ances.

d.Cl
icktheinst
anceIDforoneofthei
nst
ancesyoudeployedto.Thi
swi
l
ltakey
out
othe
EC2dashboardwhereyoucanviewthei
nstancet
hatyoulaunched.

e.Toveri
fywhetheryoursampleappl
icat
iondeploy
edsuccessful
ly
, copyt
headdr
essinthe
Publi
cDNSf i
eldinthebott
om panel
,pastetheaddressi
ntoyourbrowser,
andyouwil
lsee
yourl
ivewebpage.

St
ep8:
CleanUpYourI
nst
ances

Toavoi
dfut
urecharges,
y oumustcleanuptheresour
cesusedinthi
stutor
ial
.TheEC2
i
nst
ancesyoulaunchedforthi
stut
orial
wil
lkeeprunni
ngunlessyouter
minatethem.

a.I
ntheEC2console,
thesearchbarisautopopulatedwithasear
chfi
lterf
ort
heI
nst
anceI
D.
Del
etethi
sfi
l
terandyouwill
seealltheinstanceslaunchedbyCodeDeploy
.

b.Sel
ecttheboxesofeachAmazonEC2i
nst
ancet
oter
minat
e.Sel
ectAct
ions,I
nst
ance
Stat
e,andcli
ckTerminat
e.

Whenpr
ompt
ed,
cli
ckYes,
Ter
minat
e.

Rit
ikOli
ya
18100BTCSE02727
Exper
iment
:-
6

Ai
m:-Appl
i
cat
ionofdat
abasest
orageusi
ngbyAWSS3

Ans

AmazonS3

AmazonSi mpleSt or ageService(AmazonS3)i sanobj ectstorageser v


icet hatoff
ers
i
ndust r
y-l
eadingscal abi
li
ty,dataav ai
labi
l
ity
,secur i
ty,andperformance.Thi smeans
customer sofallsizesandi ndust ri
escanusei ttost oreandpr otectanyamountofdat afora
rangeofusecases, suchaswebsi tes,mobil
eappl icati
ons,backupandr estore,ar
chive,
enterpr
iseapplications, I
oTdev i
ces,andbigdat aanalyti
cs.AmazonS3pr ov i
deseasy -
to-use
managementf eatur essoy oucanor gani
zey ourdat aandconf i
gur efinely-t
unedaccess
control
st omeety ourspeci ficbusiness,organizational
,andcompl iancer equirements.
AmazonS3i sdesi gnedf or99. 999999999%( 119' s)ofdurabil
ity
, andst oresdat aformi l
l
ions
ofapplicati
onsf orcompani esallaroundthewor l
d.

AmazonEl
ast
icBl
ockSt
ore

AmazonEl asti
cBl ockStore(AmazonEBS)pr ovidespersi
stentblockst
or agevolumesf or
usewithAmazonEC2i nst
ancesi nt
heAWSCl oud.EachAmazonEBSv olumeis
automati
callyrepl
icatedwithi
nitsAvail
abi
li
tyZonet oprotectyoufrom componentf ail
ure,
off
eri
nghighav ai
l
abili
tyanddurabil
i
ty.AmazonEBSv olumesof f
ertheconsistentandlow-
l
atencyperformanceneededt orunyourworkloads.Wit
hAmazonEBS, youcanscaley our
usageupordownwi t
hinmi nut
es—allwhil
epay i
ngal owpr i
ceforonlywhaty ouprovisi
on.

AmazonEl
ast
icFi
l
eSy
stem

AmazonEl asti
cFi
leSystem (
AmazonEFS)pr ovidesasi mple,scalable,elasticfi
lesystem
forLi
nux-basedworkl
oadsforusewi t
hAWSCl oudser vicesandon- pr
emi sesr esources.Iti
s
buil
ttoscaleondemandt opetabyt
eswi t
houtdisrupti
ngapplications,growi ngandshr inki
ng
automati
call
yasyouaddandr emovefil
es,soyourapplicat
ionshav ethest oragetheyneed
–whent heyneedit.I
tisdesi
gnedtopr ovi
demassi vel
yparall
el sharedaccesst othousands

Rit
ikOli
ya
18100BTCSE02727
ofAmazonEC2i nstances,enablingy ourapplicationstoachievehighlevel
sofaggregate
throughputandIOPSwi thconsist entlowlat
enci es.AmazonEFSi saf ul
lymanagedser vi
ce
thatrequi
resnochangest oy ourexi sti
ngappl i
cationsandt ools,
provi
dingaccessthrougha
standardfi
lesyst
em interf
acef orseaml essint egrati
on.AmazonEFSi saregi
onalservice
stori
ngdatawithinandacr ossmul ti
pleAvai
labi l
it
yZones( AZs)forhighavail
abi
li
tyand
durabil
it
y.Youcanaccessy ourfil
esy stemsacr ossAZsandr egi
onsandshar efi
l
esbet ween
thousandsofAmazonEC2i nstancesandon- premi sesser
ver svi
aAWSDi r
ectConnector
AWSVPN.

AmazonEFSi swel l
suit
edtosupportabr oadspectr
um ofusecasesf r
om highl
y
paral
leli
zed,scale-outworkl
oadsthatrequirethehi
ghestpossibl
ethroughputtosingl
e-
thr
eaded, lat
ency -
sensit
iveworkl
oads.Usecasessuchasl i
ft
-and-
shiftent
erpri
se
appli
cations,bigdataanalyt
ics,webservi
ngandcont entmanagement ,
appli
cati
on
developmentandt esti
ng,mediaandentertainmentworkf
lows,databasebackups,and
containerstorage.

AmazonFSxf
orLust
re

AmazonFSxf orLust
reisaf ul
lymanagedf i
l
esystem thatisoptimizedforcomput e-
i
nt ensivewor kloads,
suchashi ghperformancecomput i
ng,machi nelearning, andmedia
dat aprocessingwor kfl
ows.Manyoft heseappl i
cati
onsr equir
ethehi gh-performanceand
l
owl atenci
esofscal e-out
,parall
elfi
l
esy stems.Operati
ngt hesefil
esy stemst ypi
call
y
requiresspeci ali
zedexpert
iseandadmi nistr
ati
veoverhead, r
equiri
ngy out opr ovisi
on
storageser versandt unecompl experformancepar amet er
s.Wi t
hAmazonFSx, y
oucan
l
aunchandr unaLust refi
l
esy stem t
hatcanpr ocessmassi vedataset satupt ohundredsof
gigaby tespersecondoft hroughput,milli
onsofI OPS,andsub- mil
lisecondl atencies.

AmazonFSxf orLust r
eisseaml essl
yi ntegratedwi thAmazonS3, maki ngiteasyt olinky our
l
ong-ter
m dat aset swi t
hy ourhighper for mancef il
esy stemst oruncomput e-i
ntensive
workl
oads.Youcanaut omat icallycopydat af rom S3t oFSxf orLustre,runy ourwor kloads,
andthenwr it
er esultsbackt oS3.FSxf orLust r
eal soenablesy outobur styourcomput e-
i
ntensiv
ewor kloadsf r
om on- pr emisest oAWSbyal l
owingy out oaccessy ourFSxf i
le
syst
em ov erAmazonDi rectConnectorVPN.FSxf orLustrehelpsyoucost -optimizey our
stor
agef orcomput e-i
ntensivewor kloads: I
tpr ovi
descheapandper f
ormantnon- repli
cated
stor
agef orprocessi ngdat a,wi thyourl ong-term datastoreddur abl
yinAmaz onS3orot her
l
ow-costdat ast or
es.Wi t
hAmazonFSx, youpayf oronlytheresourcesy ouuse.Ther ear eno
mini
mum commi t
ment s, upfronthar dwar eorsof twarecost s,oradditi
onalfees.

AmazonFSxf
orWi
ndowsFi
l
eSer
ver

AmazonFSxf orWindowsFil
eServerprov
idesaf ull
ymanagednat i
veMicrosoftWindows
fi
lesyst
em soy oucaneasi
l
ymov eyourWi ndows-basedappli
cati
onsthatrequi
refil
e
stor
aget oAWS.BuiltonWi
ndowsSer v
er,AmazonFSxpr ov i
dessharedfi
lestoragewitht
he
compatibil
i
tyandfeatur
est
hatyourWindows-basedapplicat
ionsrel
yon,incl
udingfull

Rit
ikOli
ya
18100BTCSE02727
supportfortheSMBpr ot
ocolandWi ndowsNTFS, ActiveDirect
ory(AD)integr
ati
on,and
Dist
ributedFil
eSy st
em (DFS).AmazonFSxusesSSDst oragetoprovidethefast
perf
or mancey ourWindowsappl i
cati
onsanduser sexpect,withhi
ghlevelsofthroughput
andIOPS, andconsistentsub-mil
li
secondlat
encies.Thiscompat i
bil
it
yandper f
ormancei s
part
icularl
yimportantwhenmov i
ngwor kl
oadsthatrequireWindowsshar edfi
lestorage,
li
ke
CRM, ERP, and.NETappl i
cat
ions,aswel l
ashomedi rectori
es.

WithAmazonFSx, youcanl aunchhighl


ydurableandav ail
ableWindowsf i
lesystemst hat
canbeaccessedfrom upt othousandsofcomput einstancesusingtheindustr
y -
standard
SMBpr ot
ocol.AmazonFSxel i
minatest
hetypicaladministr
ativeover
headofmanagi ng
Windowsfil
eservers.Youpayf oronlyt
heresourcesused, withnoupfrontcosts,minimum
commitments,oradditi
onalfees.

AmazonS3Gl
aci
er

AmazonS3Gl acierisasecure, durable,andextremelyl ow-costst or


ageser vicef ordata
archi
v i
ngandl ong-term backup.I ti
sdesi gnedtodeliver99. 999999999%dur ability
,and
provi
descompr ehensi vesecuri
tyandcompl i
ancecapabi l
itiest hatcanhelpmeetev enthe
mostst ri
ngentr egulatoryr
equirement s.AmazonS3Gl acierpr ov i
desquery -
in-place
functi
onali
ty,all
owi ngy outorunpower fulanaly
ticsdi
rect l
yony ourarchi
vedat aatr est
.You
canst or
edataf orasl i
tt
leas$0. 004pergi gabytepermont h,asi gni
fi
cantsav ingscompar ed
toon-premisessol utions.Tokeepcost slowy etsuit
ablef orv ary i
ngretri
eval needs, Amazon
S3Gl aci
erprov i
dest hreeoptionsf oraccesst oarchi
ves, from af ewmi nutest osev eral
hours.

AWSSt
orageGat
eway

TheAWSSt orageGat ewayi sahy bridst orageser vi


cet hatenablesy ouron- premises
appli
cationst oseaml esslyuseAWScl oudst orage.Youcanuset heser vicef orbackupand
archivi
ng,disasterr ecov er
y,cl
ouddat apr ocessing, storagetier
ing, andmi grati
on.Your
appli
cationsconnectt otheservicet hroughav i
rtual machi neorhar dwar egat eway
appli
anceusi ngst andar dstoragepr otocols,suchasNFS, SMBandi SCSI .Thegat eway
connectst oAWSst orageser vi
ces, suchasAmaz onS3, S3Glacier,andAmazonEBS,
providi
ngst oragef orf i
les,vol
umes, andv irt
ualtapesi nAWS.Theser viceincludesahighly-
optimizeddat atransf ermechani sm, wit
hbandwi dthmanagement ,automat ednet work
resi
li
ence, andef fi
cientdat atr
ansf er,alongwi thal ocal cacheforl ow-latencyon- premises
accesst oy ourmostact i
vedata.

Rit
ikOli
ya
18100BTCSE02727
Exper
iment
-7

Ai
m:-Appl
i
cat
ionDepl
oymentwi
thHer
oku

Ans

Herokumanagesappdepl
oymentswit
h Gi
t,t
hepopul
arver
sioncontr
olsystem.You
defi
nit
elydon’
tneedt
obeaGitexper
ttodepl
oycodetoHeroku,buti
t’
shelpful
tolear
nthe
basi
cs.

Pr
erequi
sit
es:
Inst
all
Gitandt
heHer
okuCLI

Tr
acki
ngy
ourappi
nGi
t

I
fyourappi
sal
readyt
rackedi
naGi
treposi
tor
y,pr
oceedt
o Cr
eat
ingaHer
okur
emot
e.

Bef
oreyoucandeployyourappt
oHer
oku,
youneedt
oini
ti
ali
zeal
ocal
Gitr
eposi
tor
yand
commityourappl
i
cati
oncodetoit
.

Thefol
lowi
ngexampledemonst
rat
esi
nit
ial
i
zingaGi
treposi
tor
yforanappt
hatl
i
vesi
n
the 
myapp 
dir
ect
ory
:

$cdmy
app
$gi
tini
t
I
nit
ial
i
zedempt
yGi
treposi
tor
yin.
git
/
$gi
tadd.
$gi
tcommi
t-m"
Myf
ir
stcommi
t"

Rit
ikOli
ya
18100BTCSE02727
Cr
eat
edi
nit
ial
commi
t5df
2d09:
Myf
ir
stcommi
t
44f
il
eschanged,
8393i
nser
ti
ons(
+),
0del
eti
ons(
-)
cr
eat
emode100644README
cr
eat
emode100644Pr
ocf
il
e
cr
eat
emode100644app/
cont
rol
l
ers/
sour
ce_
fil
e
.
..

Besuretoini
ti
ali
zetheGitr
eposit
oryi
nyourapp’
srootdi
rect
ory
.Ify
ourappi
sina
subdi
rect
oryofyourreposi
tor
y,i
twon’
trunwheniti
spushedtoHeroku.

Yourapp’
scodei
snowt
rackedi
nal
ocal
Gitr
eposi
tor
y.I
thasnoty
etbeenpushedt
oany
remoteser
ver
s.

Cr
eat
ingaHer
okur
emot
e
Git
 r
emot
es ar
eversi
onsofyourreposit
orythatl
i
veonotherser
vers.Youdeployyourappby
pushi
ngi
tscodetoaspeci
alHeroku-hostedremotet
hat
’sassoci
atedwithyourapp.

ForanewHer
okuapp

The herokucreat
e CLIcommandcr eatesanewemptyappl
i
cationonHeroku, al
ongwithan
associatedemptyGitreposit
ory.I
fy ourunthi
scommandfrom yourapp’
srootdirect
ory,
the
empt yHerokuGitreposi
toryisautomat i
cal
l
ysetasaremot
ef oryourl
ocalreposit
ory.

$her
okucr
eat
e
Cr
eat
ingapp.
..done,
⬢thawi
ng-
inl
et-
61413
ht
tps:
//t
hawi
ng-
inl
et-
61413.
her
okuapp.
com/|
htt
ps:
//gi
t.
her
oku.
com/
thawi
ng-
inl
et-
61413.
git

Youcanusethe 
gitr
emot
e commandt
oconf
ir
mthatar
emot
enamed 
her
oku 
hasbeenset
fory
ourapp:

$gi
tremot
e-v
her
okuht
tps:
//gi
t.
her
oku.
com/
thawi
ng-
inl
et-
61413.
git(
fet
ch)
her
okuht
tps:
//gi
t.
her
oku.
com/
thawi
ng-
inl
et-
61413.
git(
push)

Foranexi
sti
ngHer
okuapp

I
fyouhaveal
readycreatedy
ourHer
okuapp,youcaneasi
lyaddaremotetoy
ourlocal
r
eposi
tor
ywit
ht he 
herokugi
t:r
emot
e command.Al
lyouneedisyourHer
okuapp’
sname:

$her
okugi
t:
remot
e-at
hawi
ng-
inl
et-
61413
setgi
tremot
eher
okut
oht
tps:
//gi
t.
her
oku.
com/
thawi
ng-
inl
et-
61413.
git

Renami
ngr
emot
es

Bydefaul
t,t
heHer
okuCLInamesal
loftheHer
okuremot
esitcr
eat
esf
ory
ourapp 
her
oku.
Youcanrenameyourr
emoteswi
ththe 
gitr
emoter
ename 
command:

Rit
ikOli
ya
18100BTCSE02727
$gi
tremot
erenameher
okuher
oku-
stagi
ng

Renami
ngy ourHerokuremotecanbehandyi fy
ouhav emultipleHer
okuappsthatuset
he
samecodebase(forexample,
t hest
agingandproducti
onversionsofanapp)
.Inthi
scase,
eachHer
okuapphasi tsownr emoteinyourl
ocalreposi
tor
y.

Theremainderoft
hisar
ti
cleassumesy
ourapphasasi
ngl
eHer
okur
emot
ethati
s
named her
oku.

Depl
oyi
ngcode

Todeployy
ourapptoHeroku,y
out ypi
cal
l
yusethe 
gitpush commandt opushthecode
fr
om yourl
ocal
reposi
tor
y’s 
masterormainbr
anch 
toyour heroku 
remot
e,l
ikeso:

$gi
tpushher
okumai
n
I
nit
ial
i
zingr
eposi
tor
y,done.
updat
ing'
ref
s/heads/
mai
n'
.
..

Usethissamecommandwhenev
ery
ouwantt
odepl
oyt
hel
atestcommi
tt
edv
ersi
on
ofyourcodet
oHeroku.
NotethatHerokuonl
ydepl
oyscodethaty
oupushto 
mast
erormai
n.Pushi
ngcodet
o
anot
herbranchofthe 
her
oku 
remotehasnoef
fect
.

Depl
oyi
ngf
rom abr
anchbesi
desmai
n

IfyouwanttodeploycodetoHer
okufr
om anon-main 
branchofyourl
ocalr
eposi
tor
y(f
or
example,
 t
estbr
anch),uset
hefol
l
owingsy
ntaxtoensureiti
spushedtothe
remote’

main branch:

$gi
tpushher
okut
est
branch:
mai
n

Appl
i
cati
onsthatrelyonGitsubmodul
esar
esuppor
ted,
inaddi
ti
ont
omany
ot
her 
dependencyresol
uti
onstrat
egi
es.

gi
tlf
s i
snotsuppor
ted,
andusi
ngi
tmi
ghtcausepushest
ofai
l
.
Det
achi
ngf
rom t
hebui
l
dpr
ocess

Afteryoui
nit
iat
eaHerokudepl
oywith  tpush,
gi youcandet achf
rom t
heresult
ingbui
ld
processbypressi
ngCtr
l+C.Thi
sdoesnotcancel t
hebui l
dorthedeploy
.Thebuildwil
l
continuei
nthebackgr
oundandwil
lcreateanew r
elease 
assoonasitcompletes.
Resol
vi
ngsi
mul
taneousdepl
oys

It
’spossi
blet
oini
ti
ateadeploybef
orea 
prev
ious 
deployofthesameappcompletes.For
example,t
wocoll
aborat
orsonanappmightpushdi f
ferentcommit
stothe  oku 
her r
emoteat
roughl
ythesametime.

I
fthi
soccur
s,t
hedi
ff
erentv
ersi
onsofy
ourappwi
l
lbedepl
oyedt
oHer
oku 
i
ntheor
deri
n

Rit
ikOli
ya
18100BTCSE02727
whichthei
rrespect
ivebui
l
dscompl
ete.Not
ethatt
hiscandi
ff
erf
rom t
heor
deri
nwhi
cht
hepushes
occurr
ed.

Forexample,
consi
dertwobuil
ds,AandB.I
fBuil
dBstar
ts 
aft
er 
Bui
l
dAbutfi
nishes 
bef
ore i
t,
Herokuwil
ldepl
oyBuil
dB f
ir
st.Then,
whenBui
ldAevent
ual
lycomplet
es,
Her
okuwi l
ldeploy
i
t,r
eplaci
ngBuil
dB.
HTTPGi
taut
hent
icat
ion

Bydef ault,HerokuusesHTTPasi tsGitt ransport.TheHerokuCLIwi l


laut
omat i
cal
lyplace
credentialsinthe .
net
rc f
il
eon herokul ogin.TheGi tcl
ientusescURLwheni nter
acti
ngwi t
h
HTTPr emot es,andcURLwi l
luset hecr edential
sf r
om the 
.net
rc 
fi
le.Seethe 
Authent
icati
on
secti
on  andt he 
CLIauthent
icat
ionar t
icle fordetail
s.

TheHerokuHTTPGitendpoi
ntonl
yaccept
sAPI-
keybased  c 
HTTPBasi aut
hent
icat
ion.A
user
nameisnotrequi
redandanyval
uepassedf
oruser
nameisignor
ed.

Youcannotauthent
icat
ewitht
heHerokuHTTPGi tendpoi
ntusi
ngyourHer
okuuser
name
(emai
l)andpassword.UseanAPIkeyasdescr
ibedinthi
ssecti
on

If
,foranyr
eason,
youaut
hent
icat
etot
heGi
tser
vicewi
thi
ncor
rectcr
edent
ial
s,y
ou’
l
lgett
his
err
or:

r
emot
e:!WARNI
NG:
r
emot
e:!Donotaut
hent
icat
ewi
thuser
nameandpasswor
dusi
nggi
t.
r
emot
e:!Run`
her
okul
ogi
n`t
oupdat
eyourcr
edent
ial
s,t
henr
etr
ythegi
tcommand.
remote:!Seedocument
ati
onf
ordet
ail
s:ht
tps:
//dev
cent
er.
her
oku.
com/
art
icl
es/
git
#ht
tp-
git
-
authent
icat
ion

Whenyoudo 
herokulogi
n,theCLIwil
lwr
it
eanent ryfor
 git
.her
oku.
com i
ntoyour 
.net
rc 
fi
le
(
orit
sWindowsequival
ent).Si
ncet
heGitcl
ientusescURLwheni nter
act
ingwithHTTPGi t
r
emotes,
corr
ectauthent
icati
onwil
lnowhappentransparentl
y.

I
fy ou’
reusingotherGi
tcli
ent
s,suchasEGitorTower,conf
igurethem t
ouseanemptystr
ing
forusername(oranystri
ngyouli
ke–it’
signored)andyouraccountAPIkeyf
orpasswor
d.
TheAPIkeyi s 
avail
abl
eintheCLI 
andi
n Dashboard.

SSHGi
ttr
anspor
t

Thedef aul
tGitt
ransportconfiguredbytheHer
okuCLIi sHTTP, butSSHtranspor
tisalso
supported.SSHandHTTPt ransportcanbeusedinter
changeablybythesameuserandby
mul t
ipl
euserscoll
aborati
ngont hesameapp.Tohav etheHerokuCLIconf i
gureSSH
tr
anspor t
,youcanpassa  -
-ssh-git
 f
lagt
othe 
herokucreat
e, 
herokugit:
remote 
and her
oku
git
:cl
one commands.

$her
okucr
eat
e--
ssh-
git

TouseSSHGittr
ansport
,youhav
etor
egi
stery
ourSSHkeywi
thHer
oku.Seet
he 
Managi
ng
SSHKeysar
ti
cle 
fordet
ail
s.

I
fyouwantt
oal
way
suseSSHGi
twi
thHer
okuonapar
ti
cul
armachi
ne,
youcanaddt
he

Rit
ikOli
ya
18100BTCSE02727
f
oll
owi
nggl
obal
conf
ig:

$gi
tconf
ig-
-gl
obal
url
.ssh:
//gi
t@her
oku.
com/
.i
nst
eadOfht
tps:
//gi
t.
her
oku.
com/

HTTPURLswil
lst
il
lbewr
it
tent
o .
git
 f
older
sbutGi
twi
l
lrewr
it
e,ont
hef
ly,
all
Her
okuHTTP
Gi
tURLstouseSSH.

Tor
emov
ethi
srewr
it
eset
ti
ng,
run:

$gi
tconf
ig-
-gl
obal
--r
emov
e-sect
ionur
l.
ssh:
//gi
t@her
oku.
com/

TheSSHGitt
ranspor
tisn’
tsuppor
tedf
orSSOuser
s;SSOuser
smustuset
heHTTPGi
t
tr
anspor
t.

Mul
ti
pler
emot
esandenv
ironment
s

Thesamet echni
quesusedtodeploytopr
oductioncanbeusedtodepl
oyadev el
opment
branchofyourappl
icat
iontoastagi
ngappl
icat
iononHeroku,asdescr
ibedi
n Managi
ng
Multi
pleEnvi
ronmentsforanApp.

Reset
ti
ngagi
treposi
tor
y

Tor
eset
/pur
geanapp’
sHer
okuGi
treposi
tor
y,uset
he 
her
oku-
repo 
CLIpl
ugi
n:

$her
okupl
ugi
ns:
i
nst
all
her
oku-
repo
$her
okur
epo:
reset-
-appappname

Reset
ti
ngtheGitr
eposit
orywill
delet
eallsour
cecodeandGi
thi
stor
y,somakesur
eyou
haveanot
hercopyofthereposi
tor
yfir
st.

Reposi
tor
ysi
ze

Al
thoughtherei
snotahardl
imitony
ourreposi
torysize,
verylar
gereposi
tori
es(ov
er600
MB)arenotrecommended;t
heymaycausetimeoutsandsl owpushesoveral
l.
Runni
ng her
okuapps:
i
nfo 
wil
lshowyouyourreposit
orysize.

Commoncausesofl ar
ger eposi
tori
esarebi
nar yfi
l
escheckedi ntother
eposit
ory(Gi
tis
notor
iousl
ybadathandlingbi
nari
es)orconstantl
y-changingdevel
opmentlogs.Removing
fi
lescommitt
edbyaccidentcanbedonewi th gi
tfi
lter
-branch,t
houghaft
errunni
ngityouwil
l
havetopushwit
hthe -
-force 
opt
ion,whi
chissomet hi
ngt hatr
equi
rescoordi
nati
onamong
yourteam.

Afterr
educingthesi
zeofy
ourr
eposi
tor
ylocal
ly
,youwi
l
lneedt
o r
esett
heapp’
sGi
t
reposi
tor
y befor
epushi
ngi
ttoHer
okuagain.

Ot
herl
i
mit
s

Toprot
ectt
heGi
tser
vice,
Her
okui
mposescer
tai
nli
mit
sonGi
treposi
tor
yuseandcont
ent
si
ze.

User
sar
eli
mit
edt
oar
oll
i
ngwi
ndowof75Gi
trequest
sperhour
,peruser
,perapp.Oncet
his

Rit
ikOli
ya
18100BTCSE02727
l
imiti
sreached,Gitr
equest
saredeni
edunt
ilr
equestl
evel
sdr
opbel
owt
hel
i
mitf
oraf
ew
minut
es,wit
ht heerr
ormessage:

!Toomanyr
equest
sfort
hisGi
trepo.Pl
easet
ryagai
nlat
er.

I
fyoureachthi
sli
mit
,ensur
ether
ear
enotaut
omat
edpr
ocessesorscr
ipt
spol
l
ingt
heGi
t
r
eposi
tory.

I
naddi
ti
on,theuncompressedsi
zeofacheckoutof 
HEAD 
fr
om t
her
eposi
tor
y,combi
ned
wi
tht
hesizeofrestor
edsubmodules,
cannotexceed1GB.

Usi
ngsubv
ersi
onorot
herr
evi
sioncont
rol
syst
ems

Whatifyou’
real
readyusingSubversi
onoranotherrev i
sioncontrolsystem totr
ackyour
sour
cecode?Althoughwebel i
evethatGiti
soneoft hebestchoi cesav ai
lablef
orrevi
sion
cont
rol,
youdon’
tneedt ostopusingyourcurr
entrevisi
oncont rolsystem.Gitcanbepur el
ya
depl
oymentmechanism, exi
sti
ngside-
by-si
dewithyourot hertool.

Youcanl
ear
nmuchmor
eabout
 .
git
ignor
e i
n ourar
ti
cleont
het
opi
c.

Forexample,i
fyouareusingSubv
ersi
on,ini
ti
ali
zeyourGitreposit
oryasdescr
ibedabov
e.
Then,adda .
git
ignor
e f
il
etotel
lGi
ttoignoreyourSubver
siondirector
ies.

$gi
tini
t
$echo.
svn>.
git
ignor
e

Nowt
ell
Subv
ersi
ont
oignor
eGi
t:

$sv
npr
opsetsv
n:i
gnor
e.gi
t.
pr
oper
ty'
svn:
i
gnor
e'seton'
.
'
$sv
ncommi
t-m"
ignor
inggi
tfol
der(
giti
susedf
orher
okudepl
oyment
)"

The 
-
f (
for
cef l
ag)i
srecommendedinor
dertoavoidconfl
i
ctswi
thotherdevel
oper
s’pushes.
Si
nceyouarenotusingGitfory
ourr
evi
sioncont
rol
,butasatr
ansportonl
y,usi
ngthefor
ce
fl
agisareasonabl
epract
ice.
Eacht
imey
ouwi
sht
odepl
oyt
oHer
oku:

$gi
tadd-
A
$gi
tcommi
t-m"
commi
tfordepl
oyt
oher
oku"
.
..

$gi
tpush-
fher
oku

Rit
ikOli
ya
18100BTCSE02727
Exper
iment
-8

Ai
m:-.I
nst
all
ati
onandconf
igur
ati
onofAneka.

Ans

Inst
all
i
ngAnekaCloudManagementSt udioAnekainst
all
ati
onbeginswit
hinstal
lingAneka
CloudManagementStudio.TheCl
oudManagementSt udioisyourpor
talf
orcreat i
ng,
confi
guri
ngandmanagingAnekaClouds.Instal
l
ingAnekausingthedi
str
ibut
edMi crosof
t
Inst
all
erPackage(
MSI)isaquickprocessinv
olvi
ngthr
eestepsasdescri
bedbel ow

St
ep1–Runt
hei
nst
all
erpackaget
ost
artt
heSet
upWi
zar
d

Rit
ikOli
ya
18100BTCSE02727
TheWel
comePagei
ssel
f-
expl
anat
oryandy
oucanpr
oceedbycl
i
cki
ngnext
.3.
1.2

St
ep2--y
ouspeci f
ytheinst
all
ati
onf
older
.Bydef
aul
tAnekai
sinst
all
edi
nC:
\Pr
ogr
am
Fi
l
es\
Manjrasof
t\Aneka.
3.0

Rit
ikOli
ya
18100BTCSE02727
St
ep3–Conf
ir
m andst
artt
hei
nst
all
ati
on

Atthi
spoi ntyouareready
tobegintheinstall
ati
on.
Cli
ck“Next ”t
ost ar
tthe
i
nstal
lati
onor“ Back”to

Rit
ikOli
ya
18100BTCSE02727
changey
ouri
nst
all
ati
onf
older
.

Oncet
heinst
all
ati
oni
scompl
ete,
closet
hewi
zar
dandl
aunchAnekaManagementSt
udi
o
fr
om t
hestar
tmenu.

Rit
ikOli
ya
18100BTCSE02727
Exper
iment
-9

Ai
m:-I
ntegr
ati
onofappl
i
cat
ions&conf
igur
ati
onofOpenst
ack.

Ans

I
ntegr
ati
on

Conf
igur
ingaSecur
it
yGr
oup

 Wheni
nstal
l
ingOpenShif
tContai
nerPl
atf
orm onOpenSt
ack,
ensur
ethaty
ousetup
t
heappr
opri
atesecur
it
ygroups.

 Thesearesomepor tst
hatyoumusthaveinyoursecuri
tygroups,
wi t
houtwhi
cht he
i
nstal
lat
ionf ai
ls.Youmayneedmor edependi
ngont heclust
erconfi
gurat
ionyou
wanttoinstall
.Formoreinf
ormati
onandt oadj
ustyoursecuri
tygroupsaccor
dingly
,
seeRequiredPor tsf
ormoreinf
ormati
on.

Rit
ikOli
ya
18100BTCSE02727
I
fconf
igur
ingext
ernal
load-
bal
ancer
s(ELBs)f
orloadbal
ancingthemaster
sand/orr
outer
s,
y
oualsoneedtoconfi
gureI
ngr
essandEgresssecur
it
ygroupsfortheELBsappr
opri
atel
y.

Conf
igur
ingOpenSt
ackVar
iabl
es

Tosett
her
equi
redOpenStackvar
iabl
es,cr
eat
ea/ et
c/cloud.conff
il
ewitht
hefol
lowi
ng
cont
ent
sonal
lofyourOpenShi
ftCont
ainerPl
atf
orm hosts,bothmaster
sandnodes:

Rit
ikOli
ya
18100BTCSE02727
Consulty
ourOpenSt
ackadmini
str
ator
sforv
aluesoft
heOS_v
ari
abl
es,
whi
char
ecommonl
y
usedinOpenSt
ackconf
igur
ati
on.

Cur
rent
lyOpenStackCinderV3APIi
snotsuppor
ted.Tor
esol
vethi
sissueordisableaut
o
Ci
nderAPIver
siondetecti
on,y
oumustfor
ceCinderV2APIbyspeci
fyi
ngbs-v
er si
on=v2.

Conf
igur
ingOpenShi
ftCont
ainerPl
atf
orm Mast
ersf
orOpenSt
ack

 YoucansetanOpenStackconf
igur
ationonyourOpenShi
ftCont
ainerPl
atf
orm
masterandnodehost
sintwodiff
erentways:

 Usi
ngAnsi
bleandt
headv
ancedi
nst
all
ati
ont
ool

 Manual
l
y,bymodi
fyi
ngt
hemast
er-
conf
ig.
yaml
andnode-
conf
ig.
yaml
fil
es.

Conf
igur
ingOpenShi
ftCont
ainerPl
atf
ormf
orOpenSt
ackwi
thAnsi
ble

 Dur
ingadv
ancedinst
all
ati
ons,OpenSt
ackcanbeconfi
gur
edusi
ngt
hef
oll
owi
ng
par
ameter
s,whi
chareconfigur
ablei
nthei
nvent
oryfi
l
e:

o openshi
ft
_cl
oudpr
ovi
der
_ki
nd

o openshi
ft
_cl
oudpr
ovi
der
_openst
ack_
aut
h_ur
l

o openshi
ft
_cl
oudpr
ovi
der
_openst
ack_
user
name

o openshi
ft
_cl
oudpr
ovi
der
_openst
ack_
passwor
d

o openshi
ft
_cl
oudpr
ovi
der
_openst
ack_
domai
n_i
d

o openshi
ft
_cl
oudpr
ovi
der
_openst
ack_
domai
n_name

o openshi
ft
_cl
oudpr
ovi
der
_openst
ack_
tenant
_id

o openshi
ft
_cl
oudpr
ovi
der
_openst
ack_
tenant
_name

o openshi
ft
_cl
oudpr
ovi
der
_openst
ack_
regi
on

o openshi
ft
_cl
oudpr
ovi
der
_openst
ack_
lb_
subnet
_id

Rit
ikOli
ya
18100BTCSE02727
Manual
l
yConf
igur
ingOpenShi
ftCont
ainerPl
atf
orm Mast
ersf
orOpenSt
ack

Editorcreat
ethemasterconfi
gur
ati
onfi
leonallmaster
s(/et
c/ori
gin/
master
/mast
er-
confi
g.yamlbydefaul
t)andupdat
ethecontent
softheapiSer
verAr
gumentsand
control
l
erArgumentssecti
ons:

Manual
l
yConf
igur
ingOpenShi
ftCont
ainerPl
atf
orm Nodesf
orOpenSt
ack

Edi
torcreat
ethenodeconfi
gur
ati
onfi
leonal
lnodes(
/et
c/or
igi
n/node/
node-
confi
g.y
aml
by
def
aul
t)andupdatethecont
ent
softhekubel
etAr
gument
sandnodeNamesections:

Rit
ikOli
ya
18100BTCSE02727
Curr
entl
y,t
henodeNamemustmatchtheinst
ancenameinOpenstacki
norderf
or
thecl
oudprov
ideri
ntegr
ati
ont
oworkproperl
y.ThenamemustalsobeRFC1123
compli
ant

Appl
yi
ngConf
igur
ati
onChanges

Star
torrestartOpenShi
ftContai
nerPlat
form ser
vicesonallmasterandnodehoststoappl
y
yourconfi
gurati
onchanges,seeRestart
ingOpenShiftCont
ainerPlat
for
m ser
vices:

 #sy
stemct
lrest
artat
omi
c-openshi
ft
-mast
er-
api
atomi
c-openshi
ft
-mast
er-
cont
rol
l
ers

 #sy
stemct
lrest
artat
omi
c-openshi
ft
-node

Swit
chingfrom notusingacloudprovidertousingacloudprovi
derproducesaner
ror
message.Addingt hecloudprovi
dertr
iestodeletethenodebecausethenodeswitches
fr
om usingthehost nameastheexternalI
D( whi
chwoul dhavebeenthecasewhennocl oud
prov
iderwasbei ngused)tousingthecloudprov i
der’
sinst
ance-
id(whichi
swhatthecloud
prov
iderspeci
fi
es) .Toresol
vethi
sissue:

1.
Logi
ntot
heCLIasacl
ust
eradmi
nist
rat
or.

2.
Checkandbackupexi
sti
ngnodel
abel
s:

 $ocdescr
ibenode<node_
name>|
grep-
Poz'
(?
s)Label
s.*
\n.
*(?
=Tai
nts)

3.
Del
etet
henodes:

 $ocdel
etenode<node_
name>

4.
Oneachnodehost
,rest
artt
heOpenShi
ftCont
ainerPl
atf
orm ser
vice.

 #sy
stemct
lrest
artat
omi
c-openshi
ft
-node

Rit
ikOli
ya
18100BTCSE02727
Addbackanyl
abel
soneachnodet
haty
oupr
evi
ousl
yhad

Exper
iment
-10

Ai
m:-Appl
i
cat
ionofAWSCl
oud9.

Ans

AWSCl oud9isacl oud-basedi ntegrateddev elopmentenv ironment( IDE)t hatl


et syouwr it
e,
run,anddebugy ourcodewi thj ustabr owser .I
tincludesacodeedi tor,debugger ,and
terminal.Cl
oud9comespr epackagedwi thessentialtoolsforpopul arpr ogrammi ng
l
anguages, incl
udingJav aScript,Python, PHP, andmor e,soy oudon’ tneedt oinstall
fil
esor
configureyourdevelopmentmachi net ost ar
tnewpr ojects.Si nceyourCl oud9I DEiscloud-
based, youcanwor kony ourpr oj
ectsf rom yourof fi
ce, home, orany wher eusingani nternet-
connect edmachine.Cloud9al soprov idesaseaml essexper i
encef ordev elopi
ngser verl
ess
appli
cationsenablingyout oeasi lydef i
ner esources, debug, andswi t
chbet weenl ocaland
remot eexecuti
onofser v
erlessappl ications.WithCl oud9, youcanqui cklysharey our
developmentenv i
ronmentwi thy ourt eam, enabli
ngy outopai rprogram andt r
ackeach
other'
sinputsinreal t
ime.

Benef
it
s
CODEWI
THJUSTABROWSER

AWSCl oud9gi vesy outheflexi


bi l
i
tyt orunyourdev elopmentenvir
onmentonamanaged
AmazonEC2i nstanceoranyexi sti
ngLi nuxserv
ert hatsupportsSSH.Thi smeanst hatyou
canwr i
te,run,anddebugappl icationswi t
hjustabr owser ,
wit
houtneedi ngtoinst
allor
maintai
nal ocalIDE.TheCl oud9codeedi t
orandintegr at
eddebuggeri ncl
udehelpful
,ti
me-
savingfeaturessuchascodehi nting,codecompl etion,andstep-
throughdebugging.The
Cloud9termi nalprov i
desabr owser -basedshellexper i
enceenabl
ingy outoinstal
laddit
ional
softwar
e, doagi tpush,orentercommands.

Rit
ikOli
ya
18100BTCSE02727
CODETOGETHERI
NREALTI
ME

AWSCl oud9makescollaboratingoncodeeasy.Youcansharey ourdevelopment


envi
ronmentwithyourteam injustafewcli
cksandpairpr
ogram together.Whil
e
col
laborat
ing,
yourteam member scanseeeachothert
ypeinrealti
me, andinst
ant
lychat
wit
honeanot herf
rom withi
nt heIDE.

BUI
LDSERVERLESSAPPLI
CATI
ONSWI
THEASE

AWSCl oud9makesi teasytowr it


e,r
un,anddebugserverlessappli
cat
ions.Itpreconf
igures
thedev el
opmentenv ir
onmentwi thal
ltheSDKs,li
brari
es,andplug-i
nsneededf orserverl
ess
development .Cl
oud9alsopr ovi
desanenv i
ronmentforlocall
ytest
inganddebuggi ngAWS
Lambdaf uncti
ons.Thi
sal l
owsy outoit
erat
eony ourcodedi r
ectl
y,sav
ingy outi
meand
i
mpr ovingthequalit
yofy ourcode.

DI
RECTTERMI
NALACCESSTOAWS

AWSCl oud9comeswi that er


minalt
hatincl
udessudopriv
il
egest
othemanagedAmazon
EC2instancet
hatishostingyourdevel
opmentenvir
onmentandapreaut
henti
cat
edAWS
CommandLi neInt
erface.Thismakesiteasyfory
out oqui
ckl
yruncommandsanddi
rect
ly
accessAWSser vi
ces.

Rit
ikOli
ya
18100BTCSE02727

You might also like