Getting Started with AWS
Web Application Hosting for Microsoft Windows
« 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...

Step 7: Create a Key Pair

You can create your key pair so that you can connect to your Amazon EC2 instances. Public AMI instances use a public/private key pair to log in rather than a password. The public key half of this pair is embedded in your instance, allowing you to use the private key to log in securely without a password. After you create your own AMIs, you can choose other mechanisms to securely log in to your new instances. In this step we will use AWS Management Console to create a key pair.

To generate a key pair

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

  2. In the top navigation bar, in the region selector, click US East (N. Virginia).

  3. In the left navigation pane, under Network and Security, click Key Pairs.

  4. Click Create Key Pair.

  5. Type mykeypair in the new Key pair name box, and then click Yes.

  6. Download the private key file, which is named mykeypair.pem, and keep it in a safe place. You will need it to access any instances that you launch with this key pair.

    Important

    If you lose the key pair, you cannot connect to your Amazon EC2 instances.

    For more information about key pairs, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.

Since your traffic may vary, you want AWS to scale the number instances appropriately. To do this you'll want to use Auto Scaling to create an Auto Scaling group. Let's move on to the next step to create our Auto Scaling group and associate our Auto Scaling group with our Elastic Load Balancer.