Creation of an instance
Now, let's continue with creating an EC2 instance. There are various methods to create EC2 instances in AWS. We will be going through the following:
- Lightsail
- EC2 CLI
- Teraform
Lightsail
Lightsail is a one-click easy service to create instances, and it is very important for testing applications and development environments where you don't want to spend time on spinning and maintaining nodes. Lightsail also supports creating instances with predefined templates for MEAN, LAMP, Node.js, and LEMP (Nginx). Let's see how we can create instances with Lightsail.
The following are the required steps to create instances in Lightsail:
- Log in to the AWS console.
- Click on
Lightsail
under theCompute
section:

- The first screen of Lightsail is pretty straightforward; just click on
Create instance
:

- Now, you will be asked a bunch of basic questions:
- Select your instance location:

- Pick your instance image and select a blueprint:

- Click
Create New
and create a key pair for your instance:
- Click

- Provide a...