|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
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
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
In the top navigation bar, in the region selector, click US East (N. Virginia).
In the left navigation pane, under Network and Security, click Key Pairs.
Click Create Key Pair.
mykeypair in the new Key pair name box,
and then click Yes.
Download the private key file, which is named
and keep it in a safe place. You will need it to access any instances that you
launch with this key pair.
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.