AWS Elastic Cloud Compute

Everything you need to know about an AWS EC2 instance.

Praneeth Kondraju··3 min read
Cover image for AWS Elastic Cloud Compute
On this page (3)

AWS Elastic Cloud Compute Instance #

  • Elastic Cloud Compute is abbreviated as EC2.
  • It is an IaaS cloud offering by Amazon.
  • Using EC2 Instance, we can configure the machine from scratch, like a building a custom PC. But here it is done virtually by making few clicks.
  • EC2 Instance configurable components
    • Operating System(OS)

      • Example: Ubuntu, Windows, MAC.
    • Instance type

      • Here we define CPU computing hardware requirements.
        • vCPU
        • Memory
        • Instance Storage type, etc.
    • Instance configuration

      • No. of Instances
      • Network related configuration, etc.
    • Storage

      • Size
      • Volume type
      • Encryption, etc.
    • Security Group

      • In a nutshell, it is a set of firewall conditions used to control the Instance traffic.

How to Launch an EC2 Instance #

  1. Prerequisite

    Amazon Web Services(AWS) account.

  2. Steps

    1. Login to your AWS account.

    2. Click on Search bar and type EC2. Select EC2.

      ![EC2_Access_Method2.png](/img/blog/aws-elastic-cloud-compute/uREBteMKf.png align="left")

    3. You will be landed into EC2 Dashboard page. Select Instances.

      ![Select_Instance_Method1.png](/img/blog/aws-elastic-cloud-compute/iOD8tDsQa.png align="left")

    4. Select Launch Instances.

      ![Select_Launch_Instances.png](/img/blog/aws-elastic-cloud-compute/MPZdeblsP.png align="left")

    5. Based on opted user experience, creation of EC2 differs.

      a. If user opted for New Experience.

      • Scroll down the Launch an Instance page to navigate.

      • (optional) Adding tags. But adding appropriate tags is useful. ![New_EC2_Setup_Step1.png](/img/blog/aws-elastic-cloud-compute/SJFDccN2l.png align="left")

      • Select your desired Operating System. ![New_EC2_Setup_Step2.png](/img/blog/aws-elastic-cloud-compute/yhsdT7r-6.png align="left")

      • Choose your Instance type. ![New_EC2_Setup_Step3.png](/img/blog/aws-elastic-cloud-compute/QdryAWDaF.png align="left")

      • (Optional) Creating a Key pair. You can provide an existing Key pair, or you can create one if needed, or you can create a Key pair later. Key pair provides remote access to your EC2 instance using Terminal or Putty from your machine. ![New_EC2_Setup_Step4.png](/img/blog/aws-elastic-cloud-compute/YZ3IRy1-G.png align="left")

      • Network Settings. You are good to proceeds with defaults, or you can build your requirement. ![New_EC2_Setup_Step5.png](/img/blog/aws-elastic-cloud-compute/x5-7_EfHb.png align="left")

      • Configure Storage. ![New_EC2_Setup_Step6.png](/img/blog/aws-elastic-cloud-compute/Qg7iNGisb.png align="left")

      • Advanced details. Good to go with defaults or can be tweaked per requirement. ![New_EC2_Setup_Step7.png](/img/blog/aws-elastic-cloud-compute/3uoGsf-cO.png align="left")

      • One step to launch your EC2 instance. Tip: Check all your configuration, before hitting Launch Instance button. ![New_EC2_Setup_Step8.png](/img/blog/aws-elastic-cloud-compute/7MpeButZL.png align="left")

      b. If user is in Old Experience.

      • Choose Operating System. ![Old_EC2_Setup_Step1.png](/img/blog/aws-elastic-cloud-compute/5moFG-P71.png align="left")

      • Choose Instance type. ![Old_EC2_Setup_Step2.png](/img/blog/aws-elastic-cloud-compute/tbq0lwxrW.png align="left")

      • Configure Instance details. ![Old_EC2_Setup_Step3.png](/img/blog/aws-elastic-cloud-compute/mUAeeFs14.png align="left")

      • Add Storage. ![Old_EC2_Setup_Step4.png](/img/blog/aws-elastic-cloud-compute/syLX1Qv7y.png align="left")

      • (optional) Adding tags. But adding appropriate tags is useful. ![Old_EC2_Setup_Step5(1).png](/img/blog/aws-elastic-cloud-compute/7Q5w-6wRl.png align="left")

      • Configure Security group. ![Old_EC2_Setup_Step6.png](/img/blog/aws-elastic-cloud-compute/CbbKCZT1M.png align="left")

      • Review your configuration and hit Launch. ![Old_EC2_Setup_Step7.png](/img/blog/aws-elastic-cloud-compute/o_WDwk-HU.png align="left")

      c. Voilà!!, you launched your EC2 instance.

Types of various EC2 Instance, and it's purpose #

  1. General Purpose
    • This type of instance is an all round performer. It covers compute, memory and networking areas and can be used for different kinds of work loads.
    • Suitable for most of the use cases based on selected configuration.
    • Ex: Web Servers, development environments like development, testing, QA, etc.
  2. Compute Optimized
    • Compute Optimized instance is preferred for high performance workloads that require high amount of computational power for delivering the best performance.
    • Ex: Running batch jobs, High performance tasks, etc.
  3. Memory Optimized
    • Memory Optimized instance is used to for performance intended works.
    • Ex: Caching, Data analysis, etc.
  4. Accelerated Computing
    • Accelerated Computing instance offers GPU's. So, it enhances the computational tasks.
    • Ex: Machine Learning tasks, etc.
  5. Storage Optimized
    • Storage Optimized instance offers fast read/write speeds and is ideal for frequent data operations task.
    • Ex: Accessing/ Inserting data from/to Database, etc.

Praneeth Kondraju

I am an SRE. I'm a continuous learner of DevOps, AWS, Terraform. Furthermore, I'm interested in OpenSource and writing Technical blogs.

Get new posts in your inbox.

Subscribe →

Spotted a typo or want to improve this post? Edit on GitHub →

Discussion

Related posts