How to create a Linux VM with Amazon EC2
Step 1: Create a new AWS account at https://portal.aws.amazon.com/billing/signup#/account.
Step 2: Login with the newly created AWS account.
Step 3: From the AWS Management Console dashboard, select Launch a virtual machine.
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F8fe9a74a-32fd-4e54-ba9b-390d5ba3c034%2FUntitled.png?table=block&id=9b3b06b9-6995-48a6-b05b-baa86633c726&cache=v2)
Step 4: Select the HVM edition of the Amazon Linux 2 AMI. Notice that this configuration is marked Free tier eligible.
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F48331851-726a-4618-b1fe-a264a45a57e6%2FUntitled.png?table=block&id=b983c9fa-e483-4965-b9e4-0434a347aee8&cache=v2)
Step 5: On the Choose an Instance Type page, choose t.2micro as the hardware configuration of your instance and Review and Launch.
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F3dfbe950-9915-4d8c-82ac-ab2fd05a3a19%2FUntitled.png?table=block&id=9ff91fb8-8885-401d-8305-b52e03da267d&cache=v2)
Step 6: On the Review Instance Launch page, choose Launch.
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F794d3e34-2403-496a-992b-eb253ddd825b%2FUntitled.png?table=block&id=ec7a8629-ab52-4cc7-a153-e9a9897d533b&cache=v2)
Step 7: In the Select an existing key pair or create a new key pair dialog box, choose Create a new key pair, enter a name for the key pair, and then choose Download Key Pair. When you are ready, select the acknowledgment check box, and then choose Launch Instances.
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F396187bc-9b65-490a-9d99-dba70ad9c836%2FUntitled.png?table=block&id=8d9b2e8d-bfa0-4ab7-bf57-7d167a5e39fc&cache=v2)
Step 8: A confirmation page lets you know that your instance is launching. Choose View Instances to close the confirmation page and return to the console. You will see that the instance is already running.
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F812b2bd3-370c-4ed6-80b8-0ae4a2c508be%2FUntitled.png?table=block&id=772c510d-5f8c-451f-9749-b3cfd9e5d65a&cache=v2)
How to connect and use the Linux VM
Step 1: Tick the checkbox of the Linux VM instance and select Connect.
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F055e2f12-5e1d-4290-aa30-22dee296b374%2FUntitled.png?table=block&id=9912d237-1a92-4220-b961-9f3d675ffa5b&cache=v2)
Step 2: Under EC2 Instance Connect, select Connect. Amazon EC2 Instance Connect provides a simple and secure way to connect to your instances using Secure Shell (SSH).
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fa260ebc9-6fde-4006-96bd-befdeed157ed%2FUntitled.png?table=block&id=4773b55a-0899-499f-a26e-a6c4ce42758a&cache=v2)
Step 3: A new tab will be created with the Linux VM’s command line running.
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F7ae6308d-996f-43b9-aeae-c950f09a2a02%2FUntitled.png?table=block&id=7be2069d-2dbd-4424-a154-ae82ebfd1113&cache=v2)
Â