About cloud, EC2 instance and its components

  • Cloud computing is the on-demand delivery of IT resources (compute, storage, applications, etc) through a cloud platform AWS via the internet with pay-as-you-go pricing.

  • Accessing IT resources provided by the cloud providers through the web.

Key features

  1. On-demand: - Whenever/whatever we need, we get it immediately

  2. Scalable: - Increase and decrease the configuration as per the requirement

  3. Pay only whatever you use

EC2

Amazon Elastic Compute Cloud

  • EC2 is one of the famous web services. By using it we can launch any number of instances (Servers) as per our required configuration within a fraction of a minute.

    • After launching an instance, we can increase and decrease the configuration as per our requirement without stopping the instance.

To Launch an instance, we need to select below

AMI (Amazon Machine Image)

  • AMI is an operating system in AWS

  • AWS has provided some pre-defined O.S. for windows, Linux, and Mac.

  • We have to choose O.S. from AWS provided list only.

  • We can't bring any O.S. from outside into AWS.

Instance type

  • Here we are going to choose CPU cores and RAM.

  • AWS is giving them as pairs.

  • AWS paired the best possible combination form which we get maximum performance.

  • These pairs we called instance type.

EBS (Elastic Block Storage)

  • EBS is simply a hard disk that we attached to an instance.

  • Here we can choose any amount of hard disk.

  • Here we can keep both operating systems as well as objects (mp3, mp4, pictures, documents).

Tag

Tag is the full name we give to the EC2 instance for identification.

Security Groups

  • Security groups deal with ports.

  • ports are like a door to your instance.

  • We have a total of 0-65535 ports.

  • All these ports are dedicated for some special purpose

Key

  • Key pairs are just like a password, but it's a file in AWS.

  • It generates two types of keys .PEM (for use with openSSH) and .PPK (for use with putty)