SAGARFIVE

AWS EC2 Instance – Virtual Server Creation/Launching

+ Login To AWS Account :  After login, Go Services > Compute > EC2

(Recommended : Login with IAM User account – if you don’t have any IAM User then Create new IAM User with AmazonEC2FullAccess Policy/Permissions)

(If IAM User Don’t have an AmazonEC2FullAccess Policy enabled, then API Error will shown in AWS EC2 Dashboard, you can see the error shown below)


+ If You are logged in with root user account or IAM User with EC2FullAccess, Here you can see full fledged EC2 Dashboard (Graphic user interface Nov-2022) will Opens

+  Click on Launch Instance :

+ Launch Pad/Panel of EC2 Instance:

Steps to complete :

S.NoStepDetails
1Name and tagsName of your Server and tagsUp to 128 Characters
2Application and OS Images (Amazon Machine Image)Operations system
3Instance typeProcessor
4Key pair (login)Login Keys / SSH(pem/ppk) Keys
5Network settingsVPC, Subnet, IP Assign, Security Group, Firewall
6Configure storageEBS Block storage (Like HARD Disk)
7Advanced detailsRequest for spot instances, Termination protection, Userdata(bootstrapping script), Tenancy .. More
8SummaryReview your settings and launch/create Instance

Task : Create Amazon Linux instance with free tier facilities

Step – 1. Name and tags : Add name and tags


Step -2 : 
Select Operating system, here we Selected Amazon Linux – Free Tier Supported

Step – 3. Select t1.micro(1 Core – 612 MB RAM) or t2.micro (1 Core – 1 GB RAM)  – These are free tier eligible

Step – 4.  Add Key Pair : Click on Create new key pair

4.1 To Create Key pair give details:

(1) Key pair name: Linux-Instance – Free-Tier – 05112022-01 – RSA – PEM – 01,

(2) Key pair type : RSA

(3) Private key file format : .pem

(4) Click on Create key pair

4.2 Download – Save Key pair :

After clicking the Create key pair, your key will automatically downloads – save it in secure place

This is the key to login to the EC2 Instance using SSH Connection.

Step – 5 : Network Settings:

S.NoSettingDetails
1Network VPCVirtual Private Network ( Assigning Secured Isolated Internet Network Area)
2SubnetIt’s Related to IP ( Here you can private and public ip access ranges)
3Auto-assign public IPPublic IP automatically assigned to Virtual Server Instance
4Security GroupIt’s like firewall, It allows and blocks IP ranges and Ports
5SSH TrafficIt allows Users Device IP address to login to virtual Server instance using SSH connection.Here Anywhere means you can access from any ip addressOr you can select particular ip if you have
6Allow HTTPS traffic from the internetIf we want to turn EC2 Virtual server instance into web server then we need to enable https or http to access it from internet using browsers , port opens 443
7Allow HTTP traffic from the internetIf we want to turn EC2 Virtual server instance into web server then we need to enable https or http to access it from internet using browsers, port opens 80

Here we are going with Basic settings ! , when in case of real time complex EC2 infrastructure we have to edit settings by clicking the edit button at top right corner.

Step – 6 : Configure storage : It is Exactly Like Hard Disk or SSD (here gp2 is ssd – free tier gives us 8GB)

Step – 7 : Advanced details : We don’t have any requirement right now to change these settings Request for spot instances, Termination protection, Userdata(bootstrapping script), Tenancy .. More

Skip this step now, go for next and last step

Step – 8 : Summary  : It shows the setting that you selected for creating the EC2 Virtual server instance. If everything is OK then click on Launch Instance, if you find any mistakes or misconfigurations, change settings and come back here and click on Launch Instance.


When after you clicking launch instance wait for few seconds: it will shows Success and returns you EC2 Virtual server instance ID, Click on it to see the Instances Dashboard

It’s Done ! , Creating EC2 Virtual server instance with Amazon Linux OS with Free Tier Features

Here is the instances list : here you can see the instance is Running, Wait until status check are completed(It will takes few minutes to completes) to use the EC2 Virtual server instance

Connecting to AWS EC2 Instance :

1. Using SSH Terminal :

Step 1 : Select the instance and click on connect

Step 2 :  Select SSH Client tab and copy the ssh command at Example

Step -3 : Open Any SSH Terminal, select/open the directory which you saved key pair  and run the previous copied command , you can see below that it logged in , to see username run whoami command

Here are successfully Created/Launched AWS Instance and Logged in.

Note :Select and Click on Instance state Terminate, if you don’t want to connectIf you are beginner, If you think I will connect later,  then you have to know that EC2 instance have 750 hrs limitations , so stop and Terminate it if you don’t want to use itRelaunch/Create whenever you need itYou will get bill you cross 750 hrs and if you transfer the data from Block storage

Share

Facebook
LinkedIn
WhatsApp
Pinterest
Telegram
Email

Share