17
Virtual Server on AWS Deploying Play Framework in EC2 - part # 1 Kamarul kawnayeen

Virtual server on aws

Embed Size (px)

Citation preview

Page 1: Virtual server on aws

Virtual Server on AWSDeploying Play Framework in EC2 - part # 1

Kamarul kawnayeen

Page 2: Virtual server on aws

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

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

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

click on the “Instances” tab from left panel & then click “Launch Instance”

Page 6: Virtual server on aws

browse for ubuntu machine images & then select the highlighted one

Page 7: Virtual server on aws

click “Review and Launch”

Page 8: Virtual server on aws

click “Launch”

Page 9: Virtual server on aws

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

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

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

select your instance & then click the “Connect” button

Page 13: Virtual server on aws

1) change the mode of your key pairs to 400

2) copy the highlighted text.

Page 14: Virtual server on aws

Open the terminal at the directory where you placed your key paired.

Page 15: Virtual server on aws

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

if you are connecting for the first time, it will ask for confirmation. say “yes” and hit enter.

Page 17: Virtual server on aws

So, we are connected with our virtual ubuntu server at EC2 :)