AWS Core Services Part 1: Compute

AWS Core Services Part 1: Compute

AWS offers over 200 services, but there are core services divided into 5 main categories. In this section we'll learn about the 1st category, compute.

Table of contents

No heading

No headings in the article.

Soooo my dear sisters and brothers in AWS!! Welcome to another goodie episode!! 🤗🤗🤗🤗
As I'm writing this, its raining heavily outside!! The urge to just curl up and take a nap is so overwhelming!! Then all of us in the mighty third world system know that once the rainy season starts then be prepared for frequent blackouts! So just incase you see a half finished post, then well.....🤭🤭🤭


Anyways, since the agenda must agend come rain come blackout, then let's get to business!!

So I recall the first time I fell in love with AWS (kinda sucks that this is the only evidence of my shitty love life💔) I searched for AWS, signed up on the console ( I didn't have a credit card back then. Lemme tell you! Its easier to pass through the eye of the needle than convincing an African parent to lend you their card. No I'm not buying online, mum. Noo no one's gonna steal from you! And the most difficult question to answer.

'' Well, if you are not buying anything, well why do they need my card?''


Oh well. So I 'borrowed' the card. It was all for a higher cause!!) and voila! I felt like an associate already!!

But then..All I saw was the language of the gods. Compute? Elastic BeanStalk? Lambda? Where to start? I just wanted to learn about AWS🥺🥺🥺. So I fully understand how overwhelming it may feel at first! Not to worry though, I got you!.

Now AWS offers over 200 services, but the core services are divided into five main categories:

  • Compute
  • Storage
  • Database
  • Networking
  • Security

We'll also go through the AWS Cost Management. Actually, most of these services integrate with each other, so we'll touch on other services as well! But for now we'll go through the compute section.


First of all, what is compute?

Imagine if you could access iPhone 13 Pro Max on a Tekno phone through the internet, for let's say 30 dollars per month.

So you still have your Tekno phone, but you've got 1 TB storage, selfies look like a photoshoot, and yes! Your tweets have 'Twitter for iPhone' 🤭🤭🤭.

So you don't have to buy the actual phone for 1000 dollars. That's pretty much what AWS Compute entails. Accessing powerful computer machinery online at an affordable cost.


So referencing back to my Tekno analogy, it perfectly describes EC2!! It's simply accessing a much faster, powerful machine virtually, at a much cheaper cost! Technically the virtual machines are known as instances.

Practical Use Case

Cyndie wants to open up an E-Commerce site, but with full control over everything. In this case, EC2 will be the best option for her. She can build, deploy and manage her site on the virtual machines, and depending on traffic, can scale the capacity up or down.

But remember, with great power comes great responsibility. With EC2, you are in charge of everything. From setting up to maintenance, managing EC2 instances can be quite complicated. Not forgetting how it can rack up a huuuge bill if you're not careful!

How EC2 can mess you up

  • Launching too many instances
  • Leaving EC2 instances running when not in use
  • Exposing your private access keys (this is no joke!! Malicious people can access your account and have a field day)

AWS LightSail

So Cyndie started building her site using EC2, but then realized that she needed to set up so many things like static IP, SSD Storage manually. So complicated! But Lightsail saves the day!

Lightsail is a simplified version of EC2. It sets up most of the EC2 settings for you, you just choose what you want to use. Example; if Cyndie wants to set up her E-commerce site on wordpress, she will first choose the servers she wants (eg Linux, or Windows), and the wordpress platform.


N.B. While Lightsail is easier to use than EC2, it is quite restricted. For full computing power, EC2 is the best option.

AWS Lambda

So Cyndie changed her mind about lightsail, and decided to continue with EC2. She built and deployed her site on the servers. So far so good! But then traffic is still low. She gets 2 to 3 visitors everyday. So majority of the day the site has no traffic. And the EC2 Servers are running the whole day, and the billing is per hour. Meaning she's paying for 21 hours of idle server runtime. Not profitable right?

This is where Lambda comes in. With Lambda, you go serverless! Your application doesn't need to be on any server.

How does it work?

So we still have our E-Commerce site. Normally, it would be hosted on a server for it to work (think of a server as a home for your application) but servers can be quite expensive to keep up with. Now with lambda, your application is serverless! You just write code (technically known as a function) that triggers an event. So the functions act as a set of instructions for the site. Example;

  • When a user clicks on an item, enlarge it.
  • When a user orders for an item, proceed to checkout.
    Just note that with Lambda, the developers have to write some high quality code, and anticipate a user's needs in advance, to ensure every scenario has its own function. Otherwise, the site might end up having a bunch of errors!

images (1).png

AWS Batch

I majored in Genomic Science in campus, and Batch is extremely useful in the world of science!! Lemme briefly take you through the world of genetics🤭. Did you know that 99.9% of everyone's DNA is similar? It's only 0.1% of our DNA that makes us unique from each other. How do we know this? Through genome sequencing.


Genome sequencing is simply making a Google map of an organism's entire DNA in the lab.
So how does AWS fit in? This, plus other lab procedures have a set of procedures done using computers, generically known as batch processing. So AWS Batch helps with the heavy computerized processes, making work easier!

AWS Elastic BeanStalk

When it comes to deploying an app on cloud, Elastic BeanStalk is every developer's best friend! Previously we used to consider the client and how AWS Compute services fulfill their needs. Now let's consider the developer creating the application for the client.

So previously, Cyndie chose EC2 as the platform for her app. Now for a developer, deploying the app on EC2 takes alot of work! So many steps to configure manually! But with Elastic BeanStalk, the developer only uploads the code for the application. AWS sets everything up.

AWS Serverless Application Repository

Serverless Application Repository is like a collection of serverless applications (which we discussed in AWS Lambda). With SAR, developers don't need to build serverless apps over and over again, they just reuse pre-built applications and tailor them to their needs. Think of it as a stack overflow for serverless apps!

AWS OutPosts

AWS OutPosts is for large enterprises dealing with aloot of sensitive data, which is too risky to fully migrate to the cloud. Think of hospitals, large scale industries, media and entertainment, banks.

Normally, the essence of cloud is for enterprises to avoid maintaining physical servers and hardwares. But some enterprises require the physical hardware to ensure that there's low latency (delay time) in rendering services, and ensure maximum security measures.

Therefore, the enterprise provides physical space, power and network. AWS then provides the machinery (eg servers) sets up everything and maintains it. So an enterprise has its own physical center managed by AWS, while still using the cloud services. Technically this is known as hybrid cloud services.


AWS EC2 Image Builder

When it comes to EC2, we have the EC2 servers themselves, then something else known as an Amazon Machine Image (AMI). AMIs provide more information about the instance you are about to launch. Example, if I want to launch Linux servers, I will use Linux AMI to launch it.


Now one of the challenges encountered when using EC2, is that errors occur frequently during launching. That's because of inadequate testing, as EC2 lacks a testing environment where you can ensure everything is okay before launching the instance. But EC2 Image Builder caters for this gap.

With EC2 Image Builder, you manage all your images efficiently! Not only that, you can test your images against AWS standards or your own, to ensure they are fully compliant! These ensures that during production, you launch virtual machines with fewer errors and security vulnerabilities.

AWS App Runner

AWS App Runner is a service that helps developers to quickly deploy 'containerized' web applications and scale.

So what is containerization?

Imagine you've got a big presentation in a few days. You've prepared your slides, data, practised infront of a mock audience, everything! Then on the big day, your slides refuse to open on the host's laptop. Or they have a completely alien formatting. Pretty stressful right? That's a challenge developers had to face before containers.

So a developer would test their application on their own laptop first, to ensure everything is okay, before transferring it to the team's test environment. But now the issue would arise when the developer's environment and the test environment are different.

With containers, think of an all-in-one package, where your application and all its dependencies are stored in one environment. So lets say you built an app using Python 2.7 and containerized it. It doesn't matter whether the test or production environment is using Python 3. Because you came with your own library, it will still run.

So let's do a quick recap of the AWS Compute services.

  • AWS EC2:- Launch virtual machines the hard way
  • AWS LightSail:- Launch virtual machines the easy way
  • AWS Lambda:- Avoid the servers altogether
  • AWS Batch:- Perform batch processes efficiently
  • AWS Elastic BeanStalk:- Uplode code, AWS will set up the rest
  • Serverless Application Repository:- Collection of serverless apps
  • AWS OutPosts:- Provide space, power and network, AWS will bring and maintain physical servers
  • EC2 Image Builder:- Highly secure and compliant EC2 instances
  • AWS App Runner:- Build containerized web apps quickly.

For more information on EC2,AMI and Lambda click here

🎉🎉That's all for today! I hope you learnt something!🤗🤗🤗 On the next episode we'll delve into AWS Storage. See you soon! I'm so sleepy!💤💤