Create EC2 Instance in AWS
Creating an AWS Account is the first step you need to take in order to learn Amazon Web Services. Signing up for AWS provides you with all the tools you requite to become an AWS professiona
Step 1 –
Visiting the Signup Page
Step 2 – Entering User Details
Step 3 – Filling up the Credit Card details
Step 4 – Identity Confirmation
Step 5 – Selecting a Support Plan
Step 6 – Understand the AWS Free Tier
- Open the amazon EC2 console and in navigation pane choose key pair, AWS uses public-key cryptography to secure the login information for your instance. A Linux instance has no password; you use a key pair to log in to your instance securely. You specify the name of the key pair when you launch your instance, then provide the private key when you log in using SSH.
2. For Name, enter a descriptive name for the key pair. Amazon EC2 associates the public key with the name that you specify as the key name. A key name can include up to 255 ASCII characters. It can’t include leading or trailing spaces.
For Key pair type, choose either RSA or ED25519. Note that ED25519 keys are not supported for Windows instances. For Private key file format, choose the format in which to save the private key. To save the private key in a format that can be used with OpenSSH, choose pem.
To save the private key in a format that can be used with PuTTY, choose ppk. Choose Create key pair. The private key file is automatically downloaded by your browser. The base file name is the name you specified as the name of your key pair, and the file name extension is determined by the file format you chose. Save the private key file in a safe place.
3. Next choose security group and description and create inbound and outbound rules for the instance
4. From the EC2 console dashboard, in the Launch instance box, choose Launch instance, and then choose Launch instance from the options that appear. Under Name and tags, for Name, enter a descriptive name for your instance. Under Application and OS Images (Amazon Machine Image), do the following:
Choose Quick Start, and then choose Amazon Linux. This is the operating system (OS) for your instance.
From Amazon Machine Image (AMI), select an HVM version of Amazon Linux 2. Notice that these AMIs are marked Free tier eligible. An Amazon Machine Image (AMI) is a basic configuration that serves as a template for your instance.
Under Instance type, from the Instance type list, you can select the hardware configuration for your instance. Choose the t2.micro
instance type, which is selected by default. The t2.micro
instance type is eligible for the free tier. In Regions where t2.micro
is unavailable, you can use a t3.micro
instance under the free tier.
Under Key pair (login), for Key pair name, choose the key pair that you created when getting set up.
5. Next to Network settings, choose Edit. For Security group name, you’ll see that the wizard created and selected a security group for you. You can use this security group, or alternatively you can select the security group that you created when getting set up using the following steps. Choose Select existing security group.
And that’s it an ec2 instance will be created within minutes in the next blog I will share my experience regarding connecting to an ec-2 instance from a windows machine using putty
Comments
Post a Comment