Upload
acadgild
View
116
Download
1
Embed Size (px)
Citation preview
ACADGILDACADGILD
Amazon Web Services (AWS), is a subsidiary of Amazon.com, which offers a suite ofcloud computing services that make up an on-demand computing platform. The most centraland best-known of these services arguably include Amazon Elastic Compute Cloud, alsoknown as "EC2", and Amazon Simple Storage Service, also known as "S3". AWS now hasmore than 70 services that span a wide range including compute, storage, networking,database, analytics, application services, deployment, management, mobile, developer toolsand tools for the Internet of things. Amazon markets AWS as a service to provide largecomputing capacity quicker and cheaper than a client company building an actual physicalserver 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 and launch a free tier EC2
instance.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
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 -
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
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.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
In Next screen you need to fill the contact information -
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
Next fill your debit or credit card details. Preferably use your debit card if you are going to use
this account for learning purpose.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
Fill the rest form to complete the sign-up process.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
Step 2: Launch an EC2 Instance
Click on EC2 to launch a new instance -
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
Click on Launch Instance. Follow the screenshot for next step:
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
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’.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
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:
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
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.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
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’.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
Now click on ‘Launch’ to launch this Instance.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
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:
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
After Launching this Instance, you will get the below mentioned screen. To see the status of
Instance, click on instance id.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
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.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
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.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
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
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
(b) Launch the PuTTyGen tool and locate your Amazon formatted public and private key pair
by pressing Load
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
(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.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
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.
3.Start your PuTTY Session
Start PuTTY.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
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
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
If you want to start your session later you can also save your session.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
4. First time it will ask for permission. Click on Yes.
When it will prompt for login name, type ec2-user and press enter.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
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 blog site - https://acadgild.com/blog/ to learn trending technologies.
Feel free to contact us at [email protected] for any further query.
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit
ACADGILDACADGILD
https://acadgild.com/blog/wp-admin/post.php?post=5441&action=edithttps://acadgild.com/blog/wp-admin/post.php?post=5441&action=edit