Images & Instance Types
Images & Instance Types
RDP
My Laptop -----------------> Windows VM
Linux
+++++
-> Linux is Free and Open source OS
-> Linux is secured OS
-> Linux is Multi User Based OS
-> Linux Operating System having Several Distributions (flavours)
Ubuntu
Debian
Suse
Fedora
Amazon Linux
-----------------------------------------------------------------------------------
-----------------
Requirement : Launch Linux VM using EC2 service and connect to Linux VM using Putty
or Mobexterm software.
-----------------------------------------------------------------------------------
-------------------
-> When we launch EC2 instance use Key-Pair for securing our EC2 instances
-> AWS will store public key and it will provide private key file for us
Launch Linux VM
----------------
Choose AMI (Amazon Linux)
Instance Type -> t2.micro (Free Tier Eligible)
Configure Instance Details (No need to change anything)
Storage (Default 8gb for Linux)
Add Tag (Name -> MyFirstLinuxVM)
Security Group (SSH with Port 22)
Download Key Pair (.pem file)
Launch Instance
Go to EC2 dashboard and Check Public IP of Ec2 instance and notedown that
-> The applications which we are accessing through internet are called as web
applications
Commands To Execute
-------------------------
$ sudo su
$ yum update -y
$ yum install httpd -y
$ cd /var/www/html
$ echo "Welcome to Ashok IT Website..!!" > index.html
$ service httpd start
Note: After this excersise completed then STOP your EC2 instance.
-----------------------------------------------------------------------------------
---------------
-> AMI means pre-configured machine. EC2 is giving several AMIs to launch Virtual
Machines quickly
Linux AMI
Windows AMI
Mac OS AMI
1) Go to EC2 dashboard
3) Click on Action -> Select Image -> Create Image -> Give Unique Name for Image
Note: When we are working on multiple projects then we can use Images to setup
Virtual Machines easily
1) On-Demand Instance
- Fixed Price (Hourly)
- Pay for what you use
- No Commitment
- No upfront Payments
2) Reserved Instances
- Long Term Committement
- Upfront Payment
- 1 year or 3 years
- 75% discount
3) Spot Instances
- Auction Instances
- Bidding
- Huge Capacity for Cheap Price
-----------------------------------------------------------------------------------
-------------------------------
Note: In t2 family t2.micro instace is Free Tier Eligible (For 1 year, monthly 750
hours)
Note: EC2 instance minimum billing period is hour. If you use it for 5 mins also
they will consider as 1 hour.
-> If EC2 instance is in "Running" state then it will consider for billing.
-----------------------------------------------------------------------------------
-------------------------------