All Categories

Getting Started With AWS (Amazon Web Services)

Amazon Web Services (AWS), is a subsidiary of Amazon.com, which offers a suite of cloud computing services that make up an on-demand computing platform. The most central and best-known of these services arguably include Amazon Elastic Compute Cloud, also known as “EC2“, and Amazon Simple Storage Service, also known as “S3“. AWS now has more than 70 services that span a wide range including compute, storage, networking, database, analytics, application services, deployment, management, mobile, developer tools and tools for the Internet of things. Amazon markets AWS as a service to provide large computing capacity quicker and cheaper than a client company building an actual physical server farm.

Reference for the same can be found at – https://en.wikipedia.org/wiki/Amazon_Web_Services/

In this blog, we will be discuss on How to create a free account in Amazon Web Services (AWS) and launch a free tier EC2 instance.

Getting Started with Amazon Web Services (AWS)

Follow these steps to get started with Amazon Web Services (AWS):

Step 1:  Create a Free Account

Go to AWS website – https://aws.amazon.com/ and click on ‘Create a Free Account’. Refer to the below image for more reference –

If you already have an account in AWS, then sign in directly else create a free account by simply typing your email id or mobile number.

Fill the rest of the form with relevant details to complete the sign-up process.

In Next screen you need to fill the contact information –

Next fill your debit or credit card details. Preferably use your debit card if you are going to use this account for learning purpose.

Fill the rest form to complete the sign-up process.

Hadoop
Step 2: Launch an EC2 Instance

Click on EC2 to launch a new instance –

Click on Launch Instance.  Follow the screenshot for next step:

Select an Amazon Machine (AMI). Select any Instance which you are familiar with:

Now choose an Instance type. Since this blog is for beginners, we will proceed with free tier. Click on ‘Configure Instance Details’.

Configure the instance details, if you are familiar with Networking and Cloud instances else leave it as it is by default.

Next click on ‘Add Storage’ for next step. Refer the screen shot below for your reference:

Here you can choose the size of storage else simply leave it as it is by default.

Then click on ‘Tag Instance’. Give a name to this Instance and click Configure security group.

Here you can click on Configure Security Group, add rules to configure the security of this Instance. Click on ‘All Traffic’ and select ‘Anywhere’ in source field for this instance. At last click on ‘Review and Launch’.

Now click on ‘Launch’ to launch this Instance.

You will get a screen to generate key pair. Make sure you have downloaded the private key file (.pem file) else you will not be able to access your instance. Refer to the screenshot below for more reference:

After Launching this Instance, you will get the below mentioned screen. To see the status of Instance, click on instance id.

Scroll down to see the complete details of this Instance like public IP and name. Here we have not set any elastic IP to this instance, so public IP will change after every reboot.

We have launched our Instance.

To access this instance through Windows, you need to download PuTTY and PuTTY key generator to convert ‘.pem’ file into ‘.ppk’ file.

You can also refer this link for Setting up with Amazon EC2 Instance.

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/get-set-up-for-amazon-ec2.html

Step 3: Access your EC2 Instance-

You need to PuTTY to access this Instance through Windows. But PuTTY reads, .ppk file only for authentication so first we need to convert this .pem file into .ppk.

Connecting to Your Linux Instance from Windows Using PuTTY

If you are a Windows user, then you can connect your Instance using PuTTY. After you launch your instance, you can connect to it and use it the way that you’d use a computer in front of you.

Before you connect your Instance through PuTTY, complete the following prerequisites:

1) Install PuTTY for Windows

Before we install PuTTY, we need to understand it first.

PuTTY is an open source software that is available with source code. PuTTY is an SSH and telnet client, developed originally by Simon Tatham for the Windows platform.

How to Download PuTTY?

Visit the below mentioned link to download PuTTY:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

For more information, you can also visit PuTTY’s homepage and can download it.

Link-  http://www.putty.org/

2) Generate Putty Private Key ( .ppk )-

PuTTY does not support AWS private key format (.pem) generated by Amazon EC2. To connect your Instance with PuTTY you need a PuTTY format key (.ppk). For this PuTTY has a tool named PuTTYyGen which converts (.pem ) AWS key pair into PuTTY formatted key pair (.ppk) .

Steps to generate PuTTy formatted key pair (.ppk):

(a) Download PuTTYgen –

You can Download PuTTyGen from the below link:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

(b) Launch the PuTTyGen tool and locate your Amazon formatted public and private key pair by pressing Load


(c) You will see an image as shown below when you load .pem key:

(d) Click on Save private key and save it on your Desktop.

Your private key is now in the correct format for use with PuTTY. You can now connect to your instance using PuTTY’s SSH client.

  1. Start your PuTTY Session

Start PuTTY.

Enter Host Name (or IP address) of your Instance

In the Category panel, expand Connection, expand SSH, and then select Auth. and follow the instructions as given blow:

  1. Click Browse
  2.  Locate your PuTTY private key (.ppk)
  3. Click open  

If you want to start your session later you can also save your session.

4.  First time it will ask for permission. Click on Yes.

When it will prompt for login name, type ec2-user and press enter.

Your session has been successfully started. You can now use your Instance.

You can also refer to AWS documentation if you are facing any problem related Amazon EC2 Instance.

Link for the document:

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstances.html

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/get-set-up-for-amazon-ec2.html

Keep visiting our site www.acadgild.com for more updates on Cloud Computing and other technologies.

Feel free to contact us at [email protected] for any further query.

Spark

2 Comments

  1. Pingback: AWS by acadgild.com – hadoopminds

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.

Related Articles

Close
Close