Elastic Cloud Compute

Posted on Posted in AWS

EC2 – Elastic Cloud Compute


  • EC2 Instances – Virtual Computing Environments
  • AMI (Amazon Machine Images) – preconfigured EC2  templates for your instances. ie. can be SQL server, Bastion,  NAT instances etc
  • Instance Types – Processing power of your EC2 configurations. ie. CPU, memory, storage, network capacity are separated as Instance Types
  • Key pairs – Secure login information for your instances
  • EBS (Amazon Elastic Block Store) – persistent storage volumes for your EC2
  • Region/AZ (Availability Zone) –  Various physical locations of your resources
  • Elastic IP Address – static IP address for dynamic cloud computing

Instances Types:

to remember all the types easily here is an acronym: DRMCGFTPX (think: Doctor Mac Gift Pix, credit to acloudguru for acronym)

D(ense disk) R(AM memory-intensive) M(icro) C(ompute for processsing) G(raphics) I(nput/Output) F(pga or field programmable arrays ) T(2 micro) P(ics) X(treme)

Pricing Model:

  • On – Demand :pay only what you request and what you use, no up-front fees
  • Spot : flexible rates, you bid for what price you are willing to pay, somewhat sort of stock market for ec2 instances
  • Reserved : Pay upfront for a period you want to pay for your instance, and in return you get a significant discount depending on which you are signing up for. (longer period and more instance = more discount)
    •  Payment options: All Upfront, Partial Upfront, and No Upfront.
    • Can I move a reserved instance from one region to another? No

Access to EC2 can be the following:

  • EC2 Console
  • AWS Web API Call
  • AWS Command Line interface

Amazon Machine Image (AMI)

  • Preconfigured Virtual servers
  • auto-assign public IP
  • Termination protection off by default (you can delete the image by clicking on delete action if termination protection is turned on)
  • Root device by default is not encrypted (there are ways to encrypt it)
  • EBS backed – default is delete the volume with instance

Placements Groups – AWS feature that enables EC2 instances (usually of similar instance types) to communicate with each other if in the same Availability Zone with high bandwith and low latency. Restrictions: Unique per AWS account, can’t move existing EC2 to placement groups, one AZ per group.


Volume Storage: Will be discussed in another entry

Additional Features to be noted


  • Enables performance monitoring
  • set on EC3 creation
  • Standard config gives you statuse very 5 mins vs Detailed config gives you per minute but with additional charges
  • Has Dashboards, Events, Alarms, Logs


  • Enables you to scale your EC2, to increase/decrease in number depending on load and availability
  • It  checks health status via Elastic Load Balancer

Elastic Load Balancer

  • Health check for your instances
  • Gives you ability for Cross Zone load balancing
  • No Ip given, only DNS

Security Group

  • Gives you ability to control inbound and outbound traffic ,  ie enable port 8080, 1433 (sql ), 443 (https), 22 (SSH)
  • Stateful by default, if you enable inbound port 8080 it is immediately given outbound as well

Leave a Reply