 We are going to discuss Amazon EC2 application deployment. I am Venkatesh Bhingi, working as an assistant professor in the CSE department of WIT Sola. At the end of this session, students will be able to configure applications by using EC2 service and they can also deploy applications by using EC2 service. So small revision based on Amazon EC2. So what exactly Amazon EC2? Amazon Elastic Compute Cloud provides scalable computing capacity in the Amazon Web Service Cloud. It also eliminates your need to invest in hardware upfront so that you can develop and deploy applications faster. You can use Amazon EC2 to launch as many as or few virtual servers as you need to configure security, networking and managed storage. It enables you to scale up or down to handle changes in the requirement or spikes in the popularity, reducing your need to focus traffic. So these are some of the advantages which you get with Amazon EC2. So I give one example that is web application. Suppose you want to develop a site for yourself. Now what is the requirement? You will use some technology to develop a website, either Java or ASP.NET. Assume you have used Java. Then by using Java technology, you will develop JSP or sublet pages. So your site is created. Now where you will host your site on some web server? Web server can be in the form of hardware and software. Web server in the form of hardware that means you need to purchase one high-end configuration box, maybe quad core processor with 8GB or 16GB RAM and with operating system either Windows or Linux server version. Suppose you selected hardware as well as operating system. You need to install Apache Tomcat on that operating system. Assume you selected Windows server operating system and you need to install Apache Tomcat on it. Now in order to make it live, what you need to do? You need to register for domain name either on GoDaddy or some other similar site. So once you get domain name and once you get space to host your site, you can make that site live. So what you need to do? Whatever code you develop, you go to, you upload it on the web server and make it live with the configuration which is advisable according to the requirement for securing the website. Once you've done that, your site will be live. So the story behind this is you have spent money on your hardware, you have spent money for purchasing operating system, you have spent money for purchasing Apache Tomcat, everything you spent and you made your site live. Now in order to solve this or in order to save the cost of the operating system and the hardware or whether you don't know how much traffic will be coming to your site, the best advisable option is to use Amazon web services. So in Amazon web services, you can go for Amazon easy to service on which you can host your site. So in last session, we discussed how to create Amazon easy to service. Then what you do? You go to Amazon site, sign into the console, once you sign it, again you create easy to service, enter username, password. So here you can create easy to service. So what you do? Launch instance which was discussed previously. Now how many instances you want to create one? By default it is one. I created one instance, network by default, this is a network subnet preference according to your requirement of network, you can configure here or you can go with a default if there is no particular requirement. Next add storage. So by default it is take 30 GB as the default secondary storage, 30 GB, then next add tags. It is required when you are working with multiple applications, here it is not required, then you click on next configure security, then next create new security group if it is required. See here by using this RDP protocol, you can connect to your server and this is a protocol TCP and this is a port number 3389. And you can select from which source your server will be accessed, you can say anywhere, so from anywhere your server will be available, then you click on review and launch. So these are the configuration details and it is giving one warning also, improve your instance security, you can add your security group. So say in order to make your server secure, you can add security group which we will discuss in next session. So we have created the instance, now once you click on it, you can also say create a new key pair, I will say roll download key pair, so it has been downloaded, key pair for this launch instances, so you can go to that, see what does it mean? You have created an EC2 instance, now these are the configuration details, IP address is 5420262143. Now by using this IP address, you can connect to that server. Now how to connect to the server? You directly go to run, here you type MSDSC, okay, you click on okay, but here you type the IP address, 54.202.62.143, so these are the credentials which are required in order to log in that, once you enter those credentials, you will be logged into that server. So this is how we can create instances and we can connect to that particular instance by using remote desktop connection. So this is how we can create EC2 instance, once you connect to that instance through remote desktop connection, there you install whatever applications which are required and you make your site live. Now once you have done this, what you do? As we know, these are chargeable service, first I will stop this service, stop, then again what you do, terminate it, yes terminate. So this is how we can create EC2 instances and we can deploy applications, we can connect to that EC2 instance by using RDP protocol and RDP and TCP and we can configure deploy applications, I am signing it out. So what you do now, pause this video for some time and answer this question, is EC2 service free from Amazon? No, however some basic services are free with restricted features as we have discussed. These are the some of the references for my video.