Skip to main content

Amazon Web Services

Tutorial on How to Create an EC2 Instance in AWS

Technology

A Case Study of AWS Elastic Compute Cloud (EC2):

There are occasions when one is Constrained by a desktop computer or laptop’s Capabilities. Let’s say a data scientist has a sizable dataset they’d like to analyze. A mistake like the one below occurs when the scientist tries to load the complete dataset into memory.

The issue happened because of running out of RAM. The operating system was unable to allocate 500Mb more RAM. Although there are many Alternative Solutions for this kind of issue, one is to upgrade the computer’s RAM. Some PCs can only be improved so far before requiring a costly investment in extra RAM.

Picture2

AWS EC2 Virtual Machines, commonly known as Instances, provide many benefits. They are highly Scalable (one may choose instances with more RAM, CPU, etc.) and simple to start and stop (outside of the free tier, consumers pay for what they use). They allow for the choice of many platforms, among other benefits (operating systems). It’s crucial to note that while this blog teaches you how to launch a virtual machine based on Windows, there are many more types of Virtual Machines available for a variety of uses.

  1. Access to AWS services after logging in. Go to the AWS Search in the top left corner of your AWS account after logging in and type EC2 and click on it.

Picture3

  1. Click on the “Instances” from the left navigation bar and “Launch Instances” from the top right corner.

Picture4

  1. Click on “Windows,” and instead of the usual Linux-based instance, this will produce a Windows-Based Instance. This has an impact on how you connect to the instance.
Amazon Web Services - Avoid Contact Center Outages: Plan Your Upgrade to Amazon Connect
Avoid Contact Center Outages: Plan Your Upgrade to Amazon Connect

Learn the six most common pitfalls when upgrading your contact center, and how Amazon Connect can help you avoid them.

Get the Guide

Picture5

  1. Choose “Create a new key pair.” Enter the key pair’s name in the box labeled “Key pair name.” You may give your key to any name you want. Then select “Create Key Pair.” This will make the key download. Keep it in a secure place.Picture6
  2. Click on “Launch Instance”

Picture7

Note: In your Free tier, the first year includes 750 hours of t2.micro (or t3.micro in the Regions in which t2.micro is unavailable) instance usage on free level AMIs per month, 30 GiB of EBS storage, 2 million IOs, 1 GB of snapshots, and 100 GB of bandwidth to the internet.

  1. Return to the Amazon EC2 control panel. The instance has just been Started. You can return to the console by clicking on the item in the red rectangle.

Picture8

  1. Before moving on to the following step, wait until you see that “Instance State” is active. This could require some time.

Picture9

  1. Please join your instance. By clicking on “Connect.”Picture10
  2. Download Remote Desktop File” should be clicked. The remote desktop file (RDP) should be saved securely.Picture11
  3. Select “Get Password” Remember that after launching an instance, you must wait at least 4 minutes before attempting to retrieve your password.Picture12
  4. Choose the file you downloaded and then click “Decrypt Password.Picture13
  5. Once your password has been decrypted, Store It Securely. For access to your instance, you must have it.Picture14
  6. Open the RDP file. Click the next button. To open your RDP file on a Mac, you must first download “Microsoft Remote Desktop” from the App Store.Picture15
  7. Enter the password you were given.

Picture16

TIP: It is pretty helpful to have a browser to install R and/or Python. It can be challenging to work with Internet Explorer when it has Enhanced Security Configuration enabled, which is preinstalled on the instance. To avoid Internet Explorer’s increased security, download Firefox as an alternative browser.

Congratulations

Conclusion: This blog gave you an overview of how to start and connect to EC2 instances, as well as how to set up a virtual data science environment.

Happy Coding

Happy coding!

Thoughts on “Tutorial on How to Create an EC2 Instance in AWS”

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Sanket Dudhe

Sanket Dudhe is an Associate Technical Consultant at Perficient. He has an experience of 4+ years as SDET. He loves technology and hence is curious to learn about new emerging technologies #lovefortechnology.

More from this Author

Follow Us
TwitterLinkedinFacebookYoutubeInstagram