What is EC2 in AWS?
Amazon EC2 (Elastic Compute), is the most widely used AWS service. It helps you create virtual machines with your own choice of configurations that let you launch and manage server instances at any time based on your business needs. In an AWS EC2 instance, you can quickly make web servers, application servers, database servers, mail servers, game servers, media servers, file servers, and more.
There are different types of AWS instances of varying configurations and benefits.
Instance Type | Features and Benefits | Instance and Applications |
General Purpose | Offers balance among memory, compute, and networking resources. Used for a variety of workloads. | A1 â Web servers, containerized microservices, caching fleets, distributed data stores, Applications that need Arm instruction set M5, M5a, M5d â Application and web servers, small and medium databases, gaming servers, caching fleets T2, T3 â Web applications and websites, code repositories, development, build, test and staging environments, microservices |
Compute Optimized | Ideal for compute-dependent applications that need high-performance processors | C4, C5, C5n – Batch processing workloads, High-performance computing, High-performance web servers, Dedicated gaming servers, and ad service agencies, scientific modeling |
Memory Optimized | Deliver fast performance for processing large data sets in memory | R4, R5, R5a, R5d – High-performance relational and NoSQL databases, Applications that process real-time big data sets such as Hadoop/Spark, etc. |
Accelerated Computing | Latest gen general-purpose instances, provide an accelerated performance when the CPU clock rate increases | P2, P3, G3, F1 â Accelerated computing. P2, P3 â General purpose instances G3 â Graphic intensive applications |
Storage Optimized | Designed for workloads that contain very large data sets which should be written in memory and need high, sequential read and write access | D2 â Up to 48 TB of HDD-based local storage with lowest price-per-disk throughput performance on Amazon EC2 H1 â Balance between compute and memory with up to 16 TB of HDD-based local storage I3 – Non-volatile Memory Express (NVMe) SSD-backed instance storage optimized for very high random I/O performance, low latency, high IOPS, high-sequential read throughput at a low cost |
You can create AWS EC2 instances through the AWS console.
Steps to Create EC2 Windows Instance in the AWS Console (Web Portal)
Step 1
Login to AWS Console.
Step 2
After login successfully, you are on the dashboard page. Select âServicesâ from the top navigation bar and click âEC2â under the category âComputeâ.
Step 3
On the EC2 instance dashboard page, select the data center closest to your geographical location
Step 4
Scroll down, and in the âLaunch Instanceâ area, check that the selected region appears below the âLaunch Instanceâ button. Click on the âLaunch Instanceâ button.
Step 5
The Amazon Machine Image (AMI) page is displayed. You need to select your operating system for your EC2 instance. E.g., if you want to create Windows Server instance, on the page search, type âwindowsâ as the search option and press âenterâ.
Step 6
From the list of available images, click on the âSelectâ button beside the needed image. In this example, we have selected the âMicrosoft Windows Server 2019 Baseâ image.
Step 7
On the next page, select the type of the instance based on your requirement like RAM, network performance, etc. AWS selects the default micro instance and click the âNext: Configure Instance Detailsâ button.
Step 8
Enter the number of instances in the âConfigure Instance Detailsâ page. The default value is 1, and you can create multiple instances based on your need. Click on the âNext: Add Storageâ button.
Step 9
On the âAdd Storageâ page, you can add a storage device for storing your files. With the Free Tier, by default, you get 30GB of storage per instance. You can buy additional storage by clicking on the âAdd New Volumeâ button. Next, click on the âNext: Add Tagsâ button.
Step 10
In the âAdd Tagsâ page, click the âClick to add the Name tagâ.
Step 11
In the âKeyâ fieldâ type âNameâ and enter the values as âDev Trialâ. Click the âNext: Configure Security Groupâ button.
Step 12
On this page, you can choose the configuration to access this EC2 compute instance. By default, you choose the windows image and its automatically defined RDP connection. By default, âCustomâ is selected in the âSourceâ dropdown. You can change it to âAnywhereâ to allow any IP address to access your instance. Alternatively, you can select âMy IPâ, which will restrict its access to your IP or keep âCustomâ which will allow you to specify the IP address range that can access your EC2 instance. Now, click the âReview and Launchâ button.
Step 13
On this page, review all of your selected configurations and click the âLaunchâ button.
Step 14
A âKey Pairâ window is prompted. Select the âCreate a new key pairâ option from the dropdown, and in the next text field, type a unique key pair name. Click the âDownload Key Pairâ button. It will download the key pair file with â.pemâ extension on your computer. Itâs crucial for generating unique passwords for the EC2 instance.
Step 15
Click the âLaunch Instancesâ button, and itâs directed to the launch status page.
Step 16
The âLaunch Statusâ page is displayed.
Step 17
Scroll down the page and click on the âView Instancesâ button.
Step 18
All the available instances are displayed. The following image shows that the âDev Trialâ instance is initializing.
Step 19
The new instance is shown running in the list of instances.
Step 20
Select the newly created instance (âDev Trialâ in this case) and click on the âConnectâ button.
Step 21
In the âConnect to your instanceâ window, click the âDownload the Remote Desktop Fileâ button to download the RDP file. Save it on your computer.
Step 22
Click the âGet Passwordâ button.
Step 23
Click on the âChoose Fileâ button and select the already downloaded key pair file. Click on the âDecrypt Passwordâ button.
Step 24
The decrypted password will appear. Copy the Password and paste in any word processor file. Click the âCloseâ button.
Step 25
Now, go to your downloaded RDP file. The RDP software prompts to connect with EC2 instance. Click the âConnectâ button. In the popped up âWindows Loginâ window, paste the previously copied password from the AWS console and click the âOKâ button. It will start to establish connections with the AWS EC2 instance.
Following the above steps, you can create Windows Server EC2 instance. Similarly, you can create EC2 instances for other operating systems. If you need assistance, WaferWire Cloud Technologies can be your next stop for the right guidance. With our cloud technology expertise and experience, we can suggest you the best fitting cloud solution and configuration for your cloud adoption. Get in touch today, and we will be happy to help.