Amazon AiCache Getting Started Manual

  • Hello! I am an AI chatbot trained to assist you with the Amazon AiCache Getting Started Manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
AiCacheAmazonWebServices(AWS)GettingstartedGuide:
Version:1.0
1 RegisteringforAiCacheAmazonMachineImage(AMI)
a Ifyou arealreadyregisteredskipthisstepandgotoStep2.
b Gotohttp://aicache.com/
clickonAmazontopmenu,Clickonordernow
c Thiswilltakeyouto ourpaymentpageonAmazon.com.
d LoginwithyourAmazoncredentialsthenclickcontinue,fillinthenecessaryinformation
thenclickcontinue.Followtheonscreenwizard.
e Onceyouaredonewiththe
registrationprocess,amessagewillappeargivingyoua
verificationcode.
f Youarenowreadytogotostep2.
2 LaunchinganewAiCacheinstanceusingtheAiCacheAMI:
a GotoAWSManagementconsoleathttps://console.aws.amazon.com/
selecttheAmazon
Ec2tab.
b SigninusingthesameAWSaccountthatyouhaveregisteredwithinstep1.
Youwillseeadashboardthatlooksliketheonebelow:
c SelectAMIsontheleftsidemenu:
d Youwillbepresentedwitha
screenshowingmanyAMIsfromdifferentprovidersasshown
below:
e Intheviewingdropdownbox,selectpublicimages,intheemptytextboxstarttyping
aicache.
f YoumightbepresentedwithanumberofaicacheAMIs,selecttheonewhichismore
recent.AiCacheAMIsstartwithaaicache/prefix
g SelecttheappropriateAMIthenclickLaunch
h DependingonwhetheritisyourfirsttimeusingAWSEC2,andonyourspe cificneeds,AWS
managementconsolemightaskyoutocreateanewkeypair.UsuallywithAiCacheyouare
notlikelytoneedthekeypair,
howeveritisrequiredbyAmazonAWS,anditis
recommendedthatucreateakeypairwithauniquenameforaicache

i Typethekeypairname,clickonCreateanddownloadkeypair,thenclickcontinue.
Warning:Keypairisconsideredconfidential,ifanyone
canaccessyourkeypairheislikely
tobeabletocontrol,terminate,restartortamperwithyourAicacheandanyAmazonEC2
instanceyoulaunchusingthiskeypair.
j Click“continue”toconfigurefirewallsettingsforyourAiCacheinstance.
k Dependingonwhetheryouhavebeenusing
AWS,andonyourspecificneedsyoumightbe
requiredtosetupyourinstance firewall.Thefirewallconfigurationiscalled(securitygroups)
usingAmazonterminology.Withaspecificsecuritygroupyoucansetyourfirewalltoallow
certainIPaddressestoaccesscertainportsonyourinstance.
SinceAicacheisbasicallyawebserveryoushouldallowallclientstoconnecttoport80,you
shouldalsoremembertoallowyourselfto
useSSHtoconnecttotheinstancethusport20
andport22shouldalwaysbeopen.Asarecommendationforpeoplegettingstartedwith
AWSEC2andAicachesetthefirewalltobeverypermissive;youcancomebacklaterand
changethefirewallpolicytosuityourneeds.Thus
allyouhavetodoistoselectSSHport22
thencontinue,bydefaultthistranslatestoaninstancewithallportsopen.
l Onceyouaredonewiththesecuritygroupsclickcontinue
m Nextyouwillbepresentedwiththefinalscreenwhereuselectthenumber
ofaicache
instancesyouwouldliketostart,selectthesecuritygroupandthekeypair,andthenlaunch
theinstance.
3 ConnectingtotheinstanceandrunningAiCache:
a Afterlaunchingtheinstance,andifyougotoinstancesmenuontheleft,youshouldbeable
toseetheinstancewithstatusshownaslaunching.Afterawhile,and whentheinstance
statuschangetorunning,youwill
beabletoconnecttoSSHtotheinstance.
b UsethepublicDNSnameoftheinstance(server)toSSHtotheserver.
IfyouareusingaLinux,orMacOSbasedoperatingsystemsshisstraightforward,ifyouare
usingWindowsthereisafree
SSHsolutionforwindows,formoreinformationonusingand
downloadingPutty(Ansshsolutionforwindows)pleasevisit
http://www.chiark.greenend.org.uk/~sgtatham/putty/


4 ConnectingtoAiCacheinstance:
ForallEC2exp ert s:donottrytologintotheinstanceasroo twithprivatekeycertificate,root
accesstotheinstancehasbeendisabled.
AllAiCacheusersshouldlogintotheinstanceusingthefollowingcredentials:
AicacheLinuxUseraccount
:
Username:aiuser
Password:a1ca$hP@ss
Note:Usersareencouragedto changethedefaultpasswordusinglinux“passwd”command
assoonastheylogintotheinstance.
Oncetheuserisloggedinhewilllandintothedirectory/home/aiuser
ThisdirectorycontainsallthenecessaryscriptsforyoutocompletelysetupandrunAiCache.
Ifyoudo anLScommand“ls”inyourhomedirectoryyouwillseeanumberoffiles:
1 AdminGuide.pdf:thisguideisthesameguideusedfornonAWSAicachewhichisalso
availableonAicachewebsitehttp://aicache.com/admguide.pdf
.Thisguidehasallthe
necessarydetailsforyou toconfigureAiCachecompletely
Notes:
a AspecialadminguideforAWSuserswillbeavailablesoon.
b Whereverthemanualusesthenameaicachebinary(aicache)youusestartAiCache.sh
scriptinstead.
c NotethatnonAWSAiCachebinary
needsalicensefiletorunwherevertheAWS
AiCachebinarydoesnotrequireanylicensefileasaparameter.
2 startAiCache.sh
ThisisashellscriptthatisusedtostartAiCacheserver.
Youcanpassalltheparameterstothisshellscriptasdescribedintheusermanualforthe
normalnonAWSaicachebinaryexceptthelicensefileparameter,sinceAiCacheAWS
doesn’tneedalicense.
The
mainandmostimportantparametertobepassedtothescripttostarttheAiCache
serveristheconfigurationfileparameter(f)followedbytheabsolutefullpathtothe
aicacheconfigurationfile,thusforexampletostartAicacheserverwiththesample.cfg
(sampleconfigurationfile)inyourhome
directoryyouwouldusethecommand
./startAiCache.sh‐f/home/aiuser/example.cfg
Notes:
a RunningAiCachewithexample.cfgimmediatelywillproduceerrorssincethis
isasampleconfigurationfilethathasnorealmappingtoarealdomain.Use
thesampleconfigurationfiletogetstarted.
b Donotforgettobackupexample.cfgbeforemodifyingit,incaseyouhave
errors
youcangobackandcompareyourfiletothesamplefile.
3 terminateAiCache.sh
Thisfileisavailableon lyforAWSaicacheusers,thisfileisusedtoterminateAiCacheserver
runningontheinstance,toterminateAiCachesimplycallthisscriptpassingtheaicache
configurationfile(
withoutthe–fparameterasinstartAiCache.sh)
./terminateAiCache.sh/home/aiuser/example.cfg
4 example.cfg:
Thisfileisasampleconfigurationfilethatyoucanuse togetstartedquicklyconfiguringand
runningaicache.
5 ReadMe.txt,asimplereadmefilewhichhasinformationaboutAiCacheandAicache
support.
/