Skip to main content

공유 AMI로부터 가상 머신 시작하기

This workshop section walks you through setting up your own EC2 Linux instance from a premade AMI, which you will use to run analyses in later sections of the workshop.

We’ll be using an image built by the Chen Lab at NUS and GIS. This has a lot of common tools useful for bacterial (and general) genomics installed. We have documented what is on this AMI and how it was set up on our accompanying GitHub repository. Those instructions may be useful if you want to set up the same software on another system and may help you with some hints when installing other software as well for your own work.

Specifically, you learn how to:

a. Sign in to the AWS Management Console and explore it.

b. Create an Amazon EC2 instance from an AMI.

c. SSH into an EC2 instance and run Linux commands.

 

Launch the EC2 Dashboard

  1. In the AWS Management Console search bar, type EC2.

  2. Choose EC2 to open the EC2 Dashboard.

Spend a few minutes familiarizing yourself with the layout of the dashboard:

  • Left pane: Tools and features, such as the saved Amazon Machine Images (AMIs), storage volumes, and ssh keys.
  • Center: Resource listings and the ability to launch an instance.
  • Right pane: General information, such as documentation and pricing.

 

Screenshot 2023-09-26 at 11.36.10 PM.png

Launch an EC2 Instance

We will now launch an EC2 Linux-based instance.

  1. Click on Launch Instance, then click Launch instance again from the drop down menu.

Screenshot 2023-09-26 at 11.36.35 PM.png

  1. On the Launch an instance page, you can choose a friendly name for your instance.

Screenshot 2023-09-26 at 11.37.10 PM.png

  1. Click on Add additional tags and “Add Tag”. You will find the “Name” you provided for your instance. Now enter the key and value. These keys, more correctly known as a tags, will appear in the console once the instance launches. It makes it easy to keep track of running machines in a complex environment. Create additional tags similar for the ones you used for the key pair previously - give a user and grant key to this machine, and enter the same values. When ready, select Instances, Volumes, Network interfaces under the Resource types.

Screenshot 2023-09-26 at 11.37.56 PM.png

  1. Under Application and OS images (Amazon Machine Image) enter the AMI ID shared for the training into the search box. The AMI may differ from the one pictured; refer to instructor’s directions.

Note:

For this training, search for CHENLAB-PUBLIC and choose the most recent AMI version; as of September, 2022 this is v2.10b, which has ID ami-0bf420c98bedabe91. You can find out more about CHENLAB-PUBLIC AMIs in Appendix: About the AMI.

 

 

SSH into an EC2 instance