Global Analyst Insights by Rene Buest

First steps with Amazon EC2 – Linux

By on Oktober 21, 2010 in How-tos with 0 Comments

This howto describes the set-up of a virtual instance with a Fedora Linux AMI (Amazon Machine Image) based on the Amazon Elastic Compute Cloud (Amazon EC2). This includes the entire setup of the instance an the following access via ssh by a Windows 7 system.

Requirements

Selection, Setup und Running the instance

First we go to the Amazon Web Services website and log in.

Afterwards we start the AWS Management Console for EC2.

We click on Launch Instance.

A new window opens. There you will find fully pre-configured Amazon Machine Images (AMIs) by Amazon. We choose the first AMI – Getting Started on Fedora Core 8 (AMI Id: ami-b232d0db)

We choose the following configuration:

  • Number of Instances: 1
  • Availability Zone: No Preference
  • Instance Type: Small (m1.small 1.7 GB)

As an enhanced configuration we choose:

  • Kernel ID: Use Default
  • RAM Disk ID: Use Default
  • Monitoring: Nein

Afterwards we create a key pair. Here with the name clouduser_key and save it onto our lokal computer.

In the following steps we configure the firewall. Therefore we create a Security Group for the AMI. By default the external access on the ports 22 (SSH) and 80 (HTTP) is allowed. I removed the approval for the port 80, because we do not need it in this case. We give the Security Group a name, in this case Security_Group_1, and write a description, here SSH_Only. We click continue.

Next we get a summary of our configuration. We can now run our instance using Launch.

Using Your instances are now launching we come back to the console.

There we see the just created active instance and could now connect to it. Therefore we note the name in the column Public DNS.

Connect to the instance

To connect to the instance we first start PuTTYgen and boostrap (using Load) the private key we created above.

If it’s loaded we click on Save private Key and ignore the window with the Passphrase!

Now we open the PuTTY SSH Client and fill in the Public DNS name into the field Host Name. The default port is 22 (SSH).

Within the PuTTY SSH Client we go to SSH >> Auth on the left side. At Authentication parameters we bootstrap our with PuTTYgen created private key.

After clicking on Open a connection to our instance is established.

For credentials we are using the user root. Now we could work with our created Linux instance.

Terminate the instance

To terminate the instance we go back to the AWS Management Console. Using the right mouse button we click on the instance and choose Terminate.

After confirming the instance is terminated.

Looking at the AWS Management Console the yellow point shows us that the instance will be terminate. That will take some time.

About the Author

About the Author: Rene Buest is Gartner Analyst covering Infrastructure Services & Digital Operations. Prior to that he was Director of Technology Research at Arago, Senior Analyst and Cloud Practice Lead at Crisp Research, Principal Analyst at New Age Disruption and member of the worldwide Gigaom Research Analyst Network. Rene is considered as top cloud computing analyst in Germany and one of the worldwide top analysts in this area. In addition, he is one of the world’s top cloud computing influencers and belongs to the top 100 cloud computing experts on Twitter and Google+. Since the mid-90s he is focused on the strategic use of information technology in businesses and the IT impact on our society as well as disruptive technologies. Rene Buest is the author of numerous professional technology articles. He regularly writes for well-known IT publications like Computerwoche, CIO Magazin, LANline as well as Silicon.de and is cited in German and international media – including New York Times, Forbes Magazin, Handelsblatt, Frankfurter Allgemeine Zeitung, Wirtschaftswoche, Computerwoche, CIO, Manager Magazin and Harvard Business Manager. Furthermore Rene Buest is speaker and participant of experts rounds. He is founder of CloudUser.de and writes about cloud computing, IT infrastructure, technologies, management and strategies. He holds a diploma in computer engineering from the Hochschule Bremen (Dipl.-Informatiker (FH)) as well as a M.Sc. in IT-Management and Information Systems from the FHDW Paderborn. .

Subscribe

If you enjoyed this article, subscribe now to receive more just like it.

Post a Comment

Top