Lab 5: Adding EC2 Virtual Machines and Deploying the Web App

In this lab, we will start by creating a policy in IAM.

I am creating the Policy by using the Generator

ppp.PNG

Then I created the policies needed.

sss.PNG

I now need to create a new role inside of IAM that

r0lo

Now I get to make an INSTANCE!!!  I will create a Windows Server 2012 R2 using free tier.

server.PNG

Now the WebServer has been created I need to create an instance for the queueing. This will also be a Windows 2012 Server.

asda.PNG

Now the instances have been created I just need to wait for them to get the all clear.

vb

Now I need to Remote into my WebServer.

desk.PNG

Now I need to install IIS and asp.NET 4.5, HTTP connectors and windows authentication role services.

dsds.PNG

Now I need to publish the Dino store as a file system.

sdfdsfds.PNG

Now I need to move theses files to my Webserver

sdasdas.PNG

Now my files are on my Webserver I can now convert it to an application

dadasda.PNG

Now the website files are in place I need to allow Web security groups to access RDS groups, this is done in the VPC dashboard.

sdsada.PNG

Now on the Webserver, I need to remove my plain text keys from ‘Web.config’

gdfgdfg

Now using this link http://169.254.169.254/latest/meta-data/iam/security-credentials/WebServerRole I am able to get temp credentials.

jyrjrjrj.PNG

Time to set the website is working!

fgdfgfdd.PNG

And now on a public IP

asdlkjfhasdkljfh.PNG

It’s alive!

Now to sort the order processing app.

First I need to release it, publish it and then transfer it to my cloud server.

fdsfdsfsd.PNG

Now the program is on the server I need to put the setup.exe shortcut into startup then run it.

hhh.PNG

I did encounter an issue here where the program would not install, The issue was when I copied the files over AWSSDK.dll.deploy did not copy over, so a quick read over the error sheet was a quick fix.

When I go to check out I get this.

gfhfghfgh.PNG

And I found out the issue! I was missing .dll files… Copy and paste to RDP is pretty dodgy

dsadsada.PNG

That one really had me on edge! but it’s just a matter of slowing down and reading what I was doing.

Post Author: Techdox

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.