Introduction to AWS|AWS EC2

Introduction to AWS|AWS EC2

Take away from this article:

  1. What is AWS?
  2. Basic AWS services
  3. What is AWS EC2?
  4. Creating an EC2 instance
  5. Accessing EC2 from a browser

So, let's start this article and jump into the cloud world.

Note: AWS is not completely free service , but it comes with some free tier eligible services for limited time. We are going to use only those services. And once you are done with usage on that service don't forgot to stop / terminate that service .

What is AWS?

Before starting with "what is AWS" let me tell you about cloud computing platforms. Cloud computing platforms basically provide hardware and services to their consumers. Some of the examples of cloud computing platforms are AWS, GCP, Azure, etc.

Among these platforms, AWS is the most popular and widely used cloud computing platform.AWS stands for Amazon Web Services which is currently the leading platform.

aws.jpeg

Basic AWS services

AWS provides different services from different domains like compute, storage, database, AI, DevOps, etc

Here are some examples of AWS Services:

  1. Amazon EC2(Elastic Compute Cloud)
  2. Amazon S3
  3. Amazon Virtual Private Cloud(VPC)
  4. Amazon CloudWatch
  5. AWS Auto Scaling
  6. AWS Cost Explorer

What is AWS EC2?

Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) Cloud. This means we don't have to invest upfront for hardware to deploy applications. In this way, we can develop and deploy web applications faster and in a cost-effective way. Also, we can launch any operating system of our choice, it comes with a variety of operating systems. Let's start with actually creating one EC2 instance for better understanding.

Creating an EC2 instance

I'm going to show you a quick way to launch our first ec2 instance with basic configurations (I'm going much deeper into every option ) After the end of this you will be ready with running an ec2 Linux instance where you can practice Linux commands, develop, deploy the web application from your web browser.

First open AWS EC2 dashboard from searching in search bar . 1.PNG

Select on "instances" to get this dashboard . And click "Launch instance" 2.PNG

Here you will get available operating systems for your EC2 instance. There are some free tier eligible O.S. so you can select any one of them. I've selected amazon linux which fedora based linux o.s. provided by AWS. Also it comes with functionality to connect instance from browser itself.(i'll suggest you to do same if you are new , and later you can explore more by yourself)

3.PNG

Select t2.micro which is free to use. (These all are instance types with different hardware specifications) 4.PNG

Now select the number of instances you want to launch. I've selected 1 and keep other settings by default as of now(Once you are familiar with other concepts start using them. This article is just to get started with AWS so I'm keeping it simple)

5.PNG

Select storage size(keep it by default , amazon don't provide you unlimited storage in free tier , if you exceed limit you've to pay for it) 6.PNG

Add tags: You can multiple tags as per your requirements . Tags help in filtering instances exm. Tag- key: Env Value: Dev_Env Here i've used name - ec2_instance which be will displayed as name of instance.

7.PNG

Now , time to select security group , you can select pre-existing sg or create new one. As of now I'm going to create new sg with all traffic allowed(not suggested one , but for testing or personal use you can keep all traffic allowed , for real world project create your own custom sg with only required ports open ) 8.PNG

Now here you can review your selected options and if it's correct you are good to go , click on launch button.

9.PNG

Key used to access your instance from your local system (you can use putty or command line to connect instance from your system) Create new key , give name to it and download(as of now we don't need key as we are going to access instance from browser , but download it for future use if required) and launch instance. 10.PNG

Done!!!! Now in few seconds your instance will be launched and ready to access!!!

11.PNG

Accessing EC2 from a browser

Once instance is in running stage ,select on connect option which will help you connect you through your browser 12.PNG

13.PNG

Select first option of EC2 instance connect and hit connnect button. 14.PNG

Done . Now you can access your instance from you browser. 15.PNG

Once you are done with usage of instance , don't forget to stop / terminate instance . 16.PNG

Thanks for reading till end . Hope this article helped you .

Did you find this article valuable?

Support Pratik Korgaonkar by becoming a sponsor. Any amount is appreciated!