Navigating AWS EC2 Instances

My AWS Article Collection: Exploring a Multitude of Topics

  1. Let's Talk about IAM Users in AWS
  2. Exploring AWS EC2 Instances: Features, Deployment, and Hands-On Insights (c-sharpcorner.com)
  3. Creating your own Virtual Computer: A Step-by-Step EC2 Instance Guide in AWS

Introduction

In our preceding article, we successfully initiated our own virtual server within the AWS Cloud Environment. Now, it’s time to explore and interact with the recently established virtual server.

To proceed, input ‘EC2’ into the search box and press ‘Enter’. This action will seamlessly redirect you to the dashboard, as shown below.

Ec2

Among the three instances that were set, one is currently up and running, as indicated in the aforementioned display; go ahead by selecting the ‘instance’ option.

If, by any chance, the instance isn’t available, kindly verify that you’re in the correct region. When an EC2 instance is generated in the North American region, it’s essential to switch to the corresponding region to access and utilize the instance effectively.

Up on clicking on the Instance ID, you’ll be able to access comprehensive details pertaining to specific instances, as described in the figure below.

Now go ahead and click on the ‘Connect’ button.

In the screenshot provided above, you’ll notice that various options are available for connecting to an EC2 instance. The most straightforward method among these is utilizing ‘EC2 instance connect’.

Simply proceed by clicking on the ‘Connect’ button.

Once you initiate the connection by clicking, a new tab will open, displaying a command prompt screen as shown below.

So, this is where we will input commands against your virtual server.

Commands list


whoami

It will give the name of the user who is connected to this EC2 user.

Python Version

Which software version is installed?

You might be wondering about the source of the ‘python’ command. It's important to note that ‘Python’ comes pre-installed within the Amazon Linux 2 AMI.

Up to this point, we’ve successfully launched our very own EC2 instance and established a connection to it.

In our next article, let's create a webserver on an EC2 instance with the help of a few commands.

Stay tuned for an engaging adventure into the realm of EC2 instances. Are you ready to dive in?  


Similar Articles