Book Image

Amazon Web Services Bootcamp

Book Image

Amazon Web Services Bootcamp

Overview of this book

AWS is at the forefront of Cloud Computing today. Businesses are adopting AWS Cloud because of its reliability, versatility, and flexible design. The main focus of this book is teaching you how to build and manage highly reliable and scalable applications and services on AWS. It will provide you with all the necessary skills to design, deploy, and manage your applications and services on the AWS cloud platform. We’ll start by exploring Amazon S3, EC2, and so on to get you well-versed with core Amazon services. Moving on, we’ll teach you how to design and deploy highly scalable and optimized workloads. You’ll also discover easy-to-follow, hands-on steps, tips, and recommendations throughout the book and get to know essential security and troubleshooting concepts. By the end of the book, you’ll be able to create a highly secure, fault tolerant, and scalable environment for your applications to run on.
Table of Contents (16 chapters)

Key pairs


Key pairs are used to log in to the EC2 instances. They act like access credentials to EC2 instances. They use public-private keys to encrypt and decrypt the login credentials. While creating EC2 instances, we need to associate key pairs so that the user can use them to log in using SSH.

Store key pairs at a secure location because they act as a password for users to connect to your EC2 instance. If the key pair is lost, we cannot recover it. So, we need to generate another key pair and relaunch the EC2 instance with the new key pair.

AWS Management Console

Go to the AWS EC2 Management Console at https://console.aws.amazon.com/ec2/home.

Creating key pairs

Create a new key pair under your AWS account:

  1. Click Key pairs under NETWORK and SECURITY in the left menu. 
  2. Click Create Key Pair. Provide a friendly name in the Key pair name input field:

Figure 3.1: Creating a key pair

Usually, a key pair name should be able to identify the entity as an application or user, or department/group name...