Download - Virtual server on aws
![Page 1: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/1.jpg)
Virtual Server on AWSDeploying Play Framework in EC2 - part # 1
Kamarul kawnayeen
![Page 2: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/2.jpg)
PrefaceIn this tutorial series, I will go through how to deploy play framework on Amazon EC2 almost from scratch. Google Cloud Computing, Amazon Web Services, IBM Soft Layer are the top choices for architecting enterprise level solution. Although this tutorial series will not cover load balancing, auto scaling, alarm monitoring, but you will get an idea how to setup an ubuntu instance on EC2 and then make it ready for developing & deploying play application.
![Page 3: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/3.jpg)
Virtual Server on AWSI’m going to setup ubuntu 14.04 LTS on t2 micro instance.
t2 micro instance has :-➢ 1 vCPU➢ 1 Gibibyte (GiB) of RAM➢ EBS only storage
![Page 4: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/4.jpg)
Virtual Server on AWS - Step # 1After login to your aws account, select “Services -> Compute & Networking ->EC2”
login to your aws account, then select “Services->Compute & Networking->EC2”
![Page 5: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/5.jpg)
click on the “Instances” tab from left panel & then click “Launch Instance”
![Page 6: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/6.jpg)
browse for ubuntu machine images & then select the highlighted one
![Page 7: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/7.jpg)
click “Review and Launch”
![Page 8: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/8.jpg)
click “Launch”
![Page 9: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/9.jpg)
a pop will appear, you have to select the key pair you want to use to connect with that instance. if you don’t have a key pair, then create one (see the next slide). After selecting the key pair, click “Launch Instances”
![Page 10: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/10.jpg)
Ignore this slide if you already have a key pair. Otherwise1) click the “Key Pairs” tab from left panel2) click on the “Create Key Pair” and follow a popup will
appear for the name of Key pair.
![Page 11: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/11.jpg)
You will see something like this which confirm that your instance is launching. Go to EC2 console for details.
![Page 12: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/12.jpg)
select your instance & then click the “Connect” button
![Page 13: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/13.jpg)
1) change the mode of your key pairs to 400
2) copy the highlighted text.
![Page 14: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/14.jpg)
Open the terminal at the directory where you placed your key paired.
![Page 15: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/15.jpg)
Once you are at the required directory (where the key file is), then pasted the line copied 2 slides ago and hit enter
![Page 16: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/16.jpg)
if you are connecting for the first time, it will ask for confirmation. say “yes” and hit enter.
![Page 17: Virtual server on aws](https://reader033.vdocument.in/reader033/viewer/2022042701/55a566561a28ab8e248b45e6/html5/thumbnails/17.jpg)
So, we are connected with our virtual ubuntu server at EC2 :)