Running Ubuntu on AWS EC2

Running Ubuntu on AWS EC2

Day 2/90

Signing in AWS console;

Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) Cloud. Using Amazon EC2 eliminates your need to invest in hardware upfront, so you can develop and deploy applications faster.

EC2 Dashboard

Resources available in EC2

Creating an Instance:

Click on Launch an instance.
Then Name the instance

Select the OS that want to run on your EC2 server.

select the Architecture you want:

"Instance type" indicates the specification. The t2.mirco instances are Burstable Performance Instances that provide a baseline level of CPU performance with the ability to burst above the baseline. The baseline performance and ability to burst are governed by CPU Credits. I selected "Free tier eligible t2.micro instance"

Select the Key Pair: This is nothing but the Key to log into your AWS EC2 server.

Creating a key pair:

There are 2 types of Keys:
RSA: The RSA key pair is the name for the public and private keys used by the RSA algorithm. The public RSA key is the encryption key, whereas the private key (which must be kept secret to ensure that only the intended recipient can read the data) is the decryption key. The private will be downloaded to your system as soon as you generate an RSA key pair.
RSA algorithm (Rivest-Shamir-Adleman)

The ".PEM" is the private key. PEM stands for Privacy Enhanced Mail. And this key will be used to connect your terminal to the EC2 instance via SSH command.

The key is generated and automatically downloaded to my system.

Launch the instance:

Launch an instance status:

Once the instance is running click on "Instances" from EC2 > Instances

Click on Connect

Click on connect to enter your Ubuntu Machine:

Monitoring instances

These are the EC2 instances. In short, the virtual machines running on your AWS server. ( "Instance state: Stopped " they are not running for a while. Note: Never keep your instance running, if you are not using it. The app makes it easy to manage the instances running.
Hint: You can download the AWS Amazon app from the App stores: https://apps.apple.com/us/app/aws-console/id580990573

AWS Mobile console:

AWS instances can be managed from mobile.

Source of Information:

  1. https://aws.amazon.com/ec2/instance-types/t2/#:~:text=T2%20instances%20are%20Burstable%20Performance,Credits%20when%20they%20are%20active.

  2. https://proprivacy.com/blog/what-is-rsa-key#:~:text=The%20RSA%20key%2Dpair%20is,data)%20is%20the%20decryption%20key%20is%20the%20decryption%20key).