In this blog, we will learn about the AWS EC2 instance and its features and how to create the instance, and how to connect?

AWS EC2 Instance

Reading Time: 4 minutes

What is Amazon EC2 Instance?

An Amazon EC2 instance is a virtual server in Amazon’s Elastic Compute Cloud (EC2) for running applications on the Amazon Web Services (AWS) infrastructure. AWS is a comprehensive, evolving cloud computing platform; EC2 is a service that enables business subscribers to run application programs in the computing environment. It can serve as a practically unlimited set of virtual machines (VMs).

Amazon provides various types of instances with different configurations of CPU, memory, storage, and networking resources to suit user needs. Each type is available in various sizes to address specific workload requirements.

Instances are created from Amazon Machine Images (AMI). The machine images are like templates. They are configured with an operating system (OS) and other software, which determine the user’s operating environment. Users can select an AMI provided by AWS, the user community, or through the AWS Marketplace. Users also can create their own AMIs and share them.

Features of Amazon EC2 Instance:

  • Virtual computing environments, known as instances.
  • Preconfigured templates for your instances, known as Amazon Machine Images (AMIs), that package the bits you need for your server
  • Various configurations of CPU, memory, storage, and networking capacity for your instances, known as instance types
  • Secure login information for your instances using key pairs (AWS stores the public key, and you store the private key in a secure place)
  • Storage volumes for temporary data that’s deleted when you stop, hibernate, or terminate your instance, known as instance store volumes
  • Storage volumes for temporary data that’s deleted when you stop, hibernate, or terminate your instance, known as instance store volumes
  • Multiple physical locations for your resources, such as instances and Amazon EBS volumes, known as Regions and Availability Zones
  • A firewall that enables you to specify the protocols, ports, and source IP ranges that can reach your instances using security groups
  • Static IPv4 addresses for dynamic cloud computing, known as Elastic IP addresses
  • Metadata, known as tags, that you can create and assign to your Amazon EC2 resources
  • Virtual networks you can create that are logically isolated from the rest of the AWS Cloud, and that you can optionally connect to your own network, known as virtual private clouds (VPCs).

How to launch an on-demand AWS EC2 instance in AWS Cloud :

Step 1: AWS EC2 Instance Home Page :

1.1) After signing in you will redirect to the EC2 homepage. 

1.2) Else you can directly go to the Home Page Link – https://console.aws.amazon.com/ec2/v2/home

1.3) Else from any AWS page, click on service, and find EC2 option.

aws services

Step 2: Create an Instance

2.1) Click on Instance Tab
new EC2

2.2) Click on “Launch Instance > Launch Instances”.
Launch Instance

2.3) Launch Instance Step 1 — “Choose an AMI “

Now choose the latest Ubuntu server here. Currently, the latest is 20.04

amazon machine image

2.4) Launch Instance Step 2 — “Choose Instance Type”

Select the one with Free tier eligible.choose an instance type2.5) Launch Instance Step 3 — “Configure Instance”

Skip this step as of now. Also, skip the step “4. Add-Storage” and “5. Add Tags”

configure instance details

2.6) Launch Instance Step 6 — “Configure Security Group”

Add the ports which you wanted to Open to the outside world. I have added Port 8000 since I want to deploy my website to this port.

Also, I have added HTTP and HTTPS port.

0.0.0.0 means you can access these ports from anywhere. If you want to access your ports from a known IP address then mention those addresses here.

Click on the Review and Launch Button.
configure security group

2.7) Launch Instance Step 7 — “Review”

Review the information and click on the “Launch” button. You will get an option to create a new or select an existing Keypair. 

Download and save this file in a safe place. You will need this file while connecting with the instance via putty, WinSCP, Filezilla.
key pair

2.8) Click on the “Launch Instance” button. This is the final step. And your instance will be created.

Go to the instance Tab, and find your instance. Review the information and Rename the instance with any alias.

instances

Step 3: Connect to the Instance

3.1) Select the instance and Click on Actions > Connect
instances

3.2) You will redirect to a page. Your default username is “ubuntu”. Click on connect.
connect to instances

3.3) Hurray! You will get connected to your instance. Enjoy!

ubuntu

Related :

Scala Future

Written by 

Strong in design and integration problem-solving skills. Experience in Java/J2EE with database analysis and design. Skilled in developing business plans, requirements specifications, user documentation, and architectural systems research. Having Good Work Experience with Core Java, Advanced Java, Typescript, and Related Technologies, AWS like S3, Lambda, EC2, Elemental Live, Media Live, Tesseracts, and Textract.

1 thought on “AWS EC2 Instance4 min read

Comments are closed.