Achanandhi-M / AWS-EC2

Struggling to create an EC2 instance? In this repository, I will guide you to create an EC2 instance within 4 seconds. The only prerequisite is to have an AWS account. If you don't have one, create an account using the AWS Free Tier

Home Page:https://docs.aws.amazon.com/SetUp/latest/UserGuide/setup-AWSsignup.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS-EC2



Struggling to create an EC2 instance? In this repository, I will guide you to create an EC2 instance within 4 seconds. The only prerequisite is to have an AWS account. If you don't have one, create an account using the AWS Free Tier: https://docs.aws.amazon.com/SetUp/latest/UserGuide/setup-AWSsignup.html.



Remember, EC2 instances are region-specific. This means that when you launch an EC2 instance, you need to select the AWS region in which it will be created. Each AWS region is a separate geographic area, and resources, including EC2 instances, are confined to the region where they are launched.



In the Search Box Type "EC2"




Screenshot from 2024-01-13 09-53-09




With the Centralized EC2 Dashboard, we can obtain details of the EC2 Service




Screenshot from 2024-01-13 09-53-28

Click the Launch Instance Icon to Launch an instance




Screenshot from 2024-01-13 09-53-49


Name your instance and choose the operating system that you want your instance to use. The best part when using an EC2 instance is you don't need to install the operating system, instead manually, it is already pre-configured by AWS in the form of AMI(Amazon Machine Image), you can also create your own AMI.




Screenshot from 2024-01-13 09-54-27


When you Use AWS free-tier there is a restriction in choosing AMI, for free-tier you have the option to use Amazon Linux from AWS




Screenshot from 2024-01-13 09-54-39


The network is the backbone of everything. We can create our own Virtual network for our resources in AWS by using the AWS VPC (Virtual Private Cloud) service. There is no VPC currently running in this region, so it is showing a '-' value.




Screenshot from 2024-01-13 09-55-15


In the Search Box Type "VPC"

Screenshot from 2024-01-13 09-55-31


You can create your VPC based on your use case and requirements. For simplicity, I have created a default VPC.




Screenshot from 2024-01-13 09-55-50




Click Create default VPC




Screenshot from 2024-01-13 09-56-14


We have successfully created a VPC. Below, there is an option to view the setup in graphical form.




Screenshot from 2024-01-13 09-56-45


Security Groups are a security feature in EC2. We can set rules to define permissions for accessing our instance.




Screenshot from 2024-01-13 09-58-13


If you want to set up additional configurations, you can click on Advanced setup options; otherwise, click on Launch Instance.




Screenshot from 2024-01-13 09-58-52


Within 3 seconds, we have a brand new server up and running. This is the real power of the cloud. Check the instance state to verify the status of your instance.




Screenshot from 2024-01-13 10-00-09


If you want to create another EC2 instance, follow the same instructions mentioned above.




Screenshot from 2024-01-13 10-00-41


2 instances are running and the instance type is "t2.micro".




Screenshot from 2024-01-13 10-02-10


Always follow best practices to delete cloud resources when they are not needed; it also helps to reduce your cloud bills




Screenshot from 2024-01-13 10-02-49


I also want to mention here the new update from the AWS EC2 team. They introduced a new feature to monitor resource usage, which is an awesome addition. In the AWS Free Tier, we have the option to use EC2 for 750 hours monthly. This feature helps us track both resource usage of EBS and instances.




Screenshot from 2024-01-13 10-03-17




For any AWS or EC2-related doubts, reach out to me via email at achanandhi.m@gmail.com

About

Struggling to create an EC2 instance? In this repository, I will guide you to create an EC2 instance within 4 seconds. The only prerequisite is to have an AWS account. If you don't have one, create an account using the AWS Free Tier

https://docs.aws.amazon.com/SetUp/latest/UserGuide/setup-AWSsignup.html