AWS Compute – Elastic Cloud Compute (EC2)
- This is a service for creating virtual servers in AWS
- EC2 virtual servers can run
- linux based virtual machines
- windows based virtual machines
- mac based virtual machines
- AWS is present globally in various regions Refer Here
- AWS Virtual Machines are referred as EC2 instances
- AWS will create necessary virtual hardware for the vm to run which is referred as ec2 instance
- To login into ec2 instance we need credentials, AWS by default supports only key based authentication
-
AWS needs public key to establish ssh/logins.
-
Creating a key pair in AWS
-
Importing a Key pair to AWS
- Generate a keypair Execute
ssh-keygen
. This creates two files in yourHOME-DIR/.ssh
with names id_rsa and id_rsa.pub - HOME DIRECTORY:
- Windows:
C:\Users\<user-name>
- Linux:
/home/<user-name>
- Mac:
/Users/<user-name>
- Windows:
- Import into AWS
- Generate a keypair Execute
-
AWS segregates instances by
- purpose:
- General Purpose
- Compute Optimized
- Memory Optimized
- Accelarated Computing
- Storage Optimized
- HPC
- Family: Each Family represents the hardware configurations. Family will have generations of hardware evolution
- Size: This speaks about RAM, CPU, network speed
- purpose: