Amazon Elastic Compute Cloud
User Guide (API Version 2014-06-15)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Launch an Amazon EC2 Instance

You can launch a Linux instance using the AWS Management Console as described in this topic. Before you begin, be sure that you've completed the steps in Get Set Up for Amazon EC2. After you've launched your instance, you can connect to it and use it. For more information, see Connect to Your Instance.

If you'd prefer to launch and connect to a Windows instance, see Getting Started with Amazon EC2 Windows Instances.

Important

When you sign up for AWS, you can get started with Amazon EC2 for free using the AWS Free Usage Tier. If you created your AWS account less than 12 months ago, and have not already exceeded the Free Usage Tier benefits for Amazon EC2 and Amazon EBS, it will not cost you anything to complete this tutorial, because we help you select options that are within the Free Usage Tier benefits. Otherwise, you'll incur the standard Amazon EC2 usage fees from the time that you launch the instance until you terminate the instance (which is the final task of this tutorial), even if it remains idle. The total charges to complete this tutorial outside the Free Usage Tier are minimal (typically only a few dollars).

The following procedure is intended to help you launch your first instance quickly and doesn't go through all possible options. For more information about the advanced options, see Launching an Instance.

To launch an instance

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. From the console dashboard, click Launch Instance.

  3. The Select an Amazon Machine Image (AMI) page displays a list of basic configurations called Amazon Machine Images (AMIs) that serve as templates for your instance. Select the 64-bit Amazon Linux AMI. Notice that this configuration is marked "Free tier eligible."

  4. On the Select an Instance Type page, you can select the hardware configuration of your instance. The t2.micro instance is selected by default. Click Review and Launch to let the wizard complete the other configuration settings for you.

    Note

    T2 instance types must be launched into a VPC. If you have more than one nondefault VPC, you must go to the next step of the wizard and select a VPC in which to launch your instance.

  5. On the Review Instance Launch page, under Security Groups, you'll see that the wizard created and selected a security group for you. Instead, select the security group that you created when getting set up using the following steps:

    1. Click Edit security groups.

    2. On the Configure Security Group page, ensure the Select an existing security group option is selected.

    3. Select your security group from the list of existing security groups, and click Review and Launch.

  6. On the Review Instance Launch page, click Launch.

  7. In the Select an existing key pair or create a new key pair dialog box, select Choose an existing key pair, then select the key pair you created when getting set up.

    Alternatively, you can create a new key pair. Select Create a new key pair, enter a name for the key pair, and then click Download Key Pair. This is the only chance for you to save the private key file, so be sure to download it. Save the private key file in a safe place. You'll need to provide the name of your key pair when you launch an instance and the corresponding private key each time you connect to the instance.

    A key pair enables you to connect to a Linux instance through SSH. Therefore, don't select the Proceed without a key pair option. If you launch your instance without a key pair, then you can't connect to it.

    When you are ready, select the acknowledgment check box, and then click Launch Instances.

  8. A confirmation page lets you know that your instance is launching. Click View Instances to close the confirmation page and return to the console.

  9. On the Instances screen, you can view the status of your instance. It takes a short time for an instance to launch. When you launch an instance, its initial state is pending. After the instance starts, its state changes to running, and it receives a public DNS name. (If the Public DNS column is hidden, click the Show/Hide icon and select Public DNS.)