 Hello everyone, I am Venkatesh Bhingi working as an assistant professor in the CSC department of Walsh and District of Technology, Solapur. Today we are going to discuss Amazon EC2 service which is provided by Amazon. So before starting EC2 service, we will discuss about the outcome of this video. At the end of this session, students will be able to create instances of EC2. Second, deploy applications by using EC2 service. So what exactly Amazon EC2 service is? Amazon Elastic Compute Cloud, that is, Amazon EC2 provides scalable computing capacity in the Amazon Web Services Cloud. It eliminates your need to invest in hardware up front so you can develop and deploy applications faster. For example, suppose you have developed some application and you want to make it live without purchasing hardware, then that time you can deploy that application by using Amazon EC2 service on AWS and you can make that application live. Next you can use Amazon EC2 to launch as many or as few virtual servers as you need, configure security and networking and manage storage. So this is a flexibility which is given by the Amazon EC2 which you get according to your requirement, you can increase the capacity of hardware, networking capacity and storage capacity you can manage. It also enables you to scale up or down to handle changes in the requirement or spikes in the popularity, reducing your need to forecast traffic. And there is auto scaling functionality which is provided by the EC2. Next some services, virtual computing environment known as instances. It provides a virtual environment in the form of instances, pre-configured templates for your instances known as Amazon Machine Images that packages bits your need for your servers. So Amazon Machine Images is like a copy of virtual operating system which you get on your Amazon AWS. Various configurations of CPU, memory, storage, networking capacity for your instances known as instance type. So by using this EC2 service you can configure CPU, memory, storage devices, networking capacity also you can decide for your instance types. Secure your login information for your instances using keypads. By using public and private key you can secure your account. Storage volume for temporary data that is deleted when you stop or terminate your instances known as instance store volumes. So this is one of the best features which you get for Amazon EC2. And you also get persistent storage volume for your data using Amazon Elastic Block Store that is Amazon EBS. And you also get multiple physical locations for your resources such as instances and Amazon EBS volumes known as regions and availability zones. So these are the features which are featured by the Amazon EC2 service. And a few more, a firewall that enables you to specify the protocols, port, source IP ranges that can reach your instances using security groups. Static IPv4 addresses for dynamic light computing known as Elastic IP addresses. Metadata known as tags that you can create and assign to your Amazon EC2 service. So you can get a static IPv4 address for your application if it is required. And you can do the tagging for your application also. Virtual network you can create that are logically isolated from the rest of AWS cloud and that you can optionally connect to your own network known as virtual private clouds. So you can create virtual networks by using Amazon EC2 service for your own application according to your requirement. Now how exactly to use Amazon EC2 service on AWS that we are going to discuss? In order to do that, first you log into Amazon AWS by using your account. Log into AWS management console, sign into the console. You enter your username password. Now in order to create your user, now we logged into this Amazon AWS account. Go to this EC2 service, click on it, click on EC2. Now you can see zero running instances, zero dedicated host, zero elastic IPs. Now we want to create instance of EC2, so what you say launch instance. Here you can select Amazon machine image AMI, which we discussed during slide show. What I'll do, I'll select one Windows free tier eligible operating system, which is of 64 bit, I selected this. So this is first step of creating instance. Then it is asking for instance type, that is how many cores it is required, how much memory it is required. Now I'm going for this free tier eligible one CPU, one GB, main memory. This is internal storage type EBS. So I'm selecting this because it is free of course, review and launch. Then you go to next, you can say you can select edit storage. Now this is the secondary memory for your application. I selected by default it is 30, I'll go with the same. Add tax if it is required, you can add tax for your application. This feature is required when you are using multiple application. Now here it is not required. Now security related changes also you can do like you can create your new security group or select existing security group, which we'll discuss later. And see this is the type of connection by which you can connect to this service, RDP, TCP protocol, the port number is this. You can give IP address, source IP address. And once you give this, you say review and launch, then finally you say launch. And here you say choose an existing key pair, I say launch instances. So once you get this message, that means what you have successfully created an instance for EC2 service, and the ID it is this. So once you click on it, you can see instance is in the process of creation. This is the instance ID and the instance type T2.micro. And the instance is created under the ability zone US West 2A. Still it is in the process, so it is showing pending. Once it is ready, it will show ready. It is getting initialized status checking. This is public DNS address IPv4. So my IPv4 address is 54.149.180.189. And you can also check the details of configuration for your EC2 instance, clicking this down button. So this is the instance ID, which already discussed instance state. Now it is in running state. Now it has been in the state of execution that is running. You've got IP address for your instances also, which is live IP address. Instance type is T2.micro. Private DNS, this is for internal purpose. Private IP, this is again for internal purpose. And this is the built-in security group. Launch wizard and AMI ID also you can see. If Windows Server 2019 origin we have created. So like this we can create instances. Now the instance has been created. Now whatever the hardware configuration which you got with this instance, you can configure your application on this hardware. Now suppose I want to make any changes to instance. Suppose I want to stop this instance, you say stop. Yes, stop. So once it got stopped, you can see the status, instance status that is stopping. So still it is in the process of stopping. Again if you want to start, again you can say start once it has been stopped. And if you want to terminate, you can terminate your instance if it is not required. So you can see the warning message on EBS-backed instance. The default action is to root EBS volume to be deleted when the instance is terminated. Storage on the local drive will be lost. If still you want to ignore this warning, you can say yes, terminate. Yes, terminate. Once it is terminated, see be careful when you are creating any instance on AD AWS because some services are not free of cost. So you say sign out. So once you sign out of it, that means you have completed this now. So this is how we have created EC2 instances. Now pause this video for some time and answer this question. Which of the following features is used for scaling of EC2 sites? First question. Second, Amazon Dynamite provides developers a tool to build failure resalent applications and isolate themselves from common failure scenarios. Think for some time and answer this. So the first answer is auto scaling. The second one is EC2. These are the references which I used to create this video. Thank you.