AWS Builder Center
AWS Explained: How Cloud Infrastructure Actually Works

AWS Explained: How Cloud Infrastructure Actually Works

A practical introduction to AWS, cloud computing, and the building blocks behind modern applications

From local development to the cloud




Table of Contents

  1. Where Does Your Application Actually Run?
  1. What Is Cloud Computing?
  1. What Is AWS?
  1. Why Does AWS Have So Many Services?
  1. AWS Regions and Availability Zones
  1. The Building Blocks of an AWS Application
  1. Let’s Build a Simple Application on AWS
  1. What Happens When a User Opens Your Application?
  1. Where Does Security Fit?
  1. Cloud Doesn’t Mean “No Servers”
  1. What Does AWS Actually Manage?
  1. Is AWS Always the Right Choice?
  1. Where Do We Go From Here?
  1. Conclusion



Where Does Your Application Actually Run?

Imagine you have just finished building a Spring Boot application. It works perfectly on your laptop. You can start it, open  localhost:8080 , and everything behaves as expected.
But then you want other people to use it.
Your laptop is not a practical place to run an application for real users. It may be turned off, lose its internet connection, or simply not have enough resources when more users start accessing the application.
So you need another computer that can stay available and run your application. That sounds simple, but running an application for real users involves more than just finding a computer.
You need to think about several things:
  • Compute: Where will your application code run?
  • Networking: How will users reach your application?
  • Storage: Where will files such as images and documents be stored
  • Database: Where will application data such as users and orders live
  • Security: Who is allowed to access these resources?
  • Scalability: What happens when the number of users increases?
A simple application might look like this:
Your Application
│
┌────────────────────────────────────┐
│ │ │
Compute Database Storage
│ │ │
Run code Store data Store files

From local development to the cloud

At first, you might try to manage all of this yourself. You could buy a server, install an operating system, configure networking, set up a database, and maintain the machine. But that creates a lot of work that has little to do with building your application. This is the problem cloud computing tries to solve. Instead of buying and maintaining all the physical infrastructure yourself, you can use infrastructure provided by a cloud provider. And AWS is one of the platforms that provides these services.
Before looking at AWS itself, though, it helps to understand what cloud computing actually means.



What Is Cloud Computing?

Cloud computing is the idea of using computing resources over the internet instead of owning and managing all the physical infrastructure yourself.
Think about what happens when a company runs an application on its own servers.
The company needs to buy the hardware, find a place to keep it, provide power and cooling, install the operating system, configure the network, replace failed hardware, and keep everything running.
That works, but it takes time and requires people to manage the infrastructure.
With cloud computing, a cloud provider takes care of much of the physical infrastructure. You can request the resources you need and use them through a web console, command-line tools, or APIs.
For example, instead of buying a physical server for your application, you can create a virtual server in the cloud.
Traditional Infrastructure
Company
│
├── Buy Server
├── Install OS
├── Configure Network
├── Maintain Hardware
└── Run Application
Cloud Infrastructure
Developer
│
▼
Cloud Provider
│
├── Compute
├── Storage
├── Networking
└── Database
The important thing to understand is that the cloud does not remove the physical infrastructure. There are still servers, storage devices, networking equipment, data centers, power systems, and cooling systems behind the scenes. The difference is who manages them and how you consume them.
You don’t normally need to know which physical machine is running your application. Instead, you work with the cloud provider’s services and configure the resources your application needs.
This also makes it easier to change your infrastructure as your application grows. You might start with a small amount of computing capacity and increase it when your application gets more traffic.
That’s the basic idea behind cloud computing: use computing infrastructure as a service instead of owning and managing all of the physical infrastructure yourself.
AWS takes this idea and provides a large collection of services built around it.



What Is AWS?

AWS stands for Amazon Web Services. It is a cloud platform that provides computing infrastructure and services over the internet.
Instead of buying and maintaining your own servers, you can use AWS to get the resources your application needs. You can create servers, store files, run databases, configure networks, manage permissions, and much more.
But there is one thing that can make AWS confusing when you first start using it: There are a lot of services.
The easiest way to understand AWS is not to memorize the names of those services. Start by thinking about what an application needs.
For example, an application needs somewhere to run its code. AWS provides compute services for that.
It needs somewhere to store files. AWS provides storage services.
It needs somewhere to keep application data. AWS provides database services.
It needs a way for different components to communicate. AWS provides networking services.
And it needs rules that control who can access those resources. AWS provides identity and security services.
You can think of AWS like this:
AWS
│
├── Compute
│ └── EC2
│
├── Storage
│ └── S3
│
├── Database
│ └── RDS
│
├── Networking
│ └── VPC
│ ├── Subnets
│ ├── Route Tables
│ ├── Internet Gateway
│ └── Security Groups
│
└── Security / Identity
└── IAM
├── Users
├── Roles
└── Policies
AWS Cloud Architecture: Compute, Storage, Database, Networking, and Security.

The services shown here are only a small part of AWS. There are many more services for messaging, monitoring, containers, analytics, machine learning, and other use cases. You don’t need to learn all of them at once.
The important thing is to understand the problems each category solves. Once that mental model is clear, individual AWS services become much easier to learn.
So why does AWS have so many different services in the first place? That’s what we’ll look at next.



Why Does AWS Have So Many Services?

If you’re new to AWS, one of the first things you’ll notice is the number of services available. It can feel overwhelming.
Why do you need hundreds of different services just to run an application?
The simple answer is that applications have different requirements.
A small application might only need a server, a database, and some file storage. A large application might need containers, queues, caching, monitoring, analytics, machine learning, and many other components.
AWS provides separate services for these different problems instead of forcing every application to use the same infrastructure.
For example, you can use EC2 when you want control over a virtual server. You can use S3 when you need to store files. You can use RDS when you want a managed relational database. You can use SQS when different parts of your application need to communicate asynchronously.
You don’t need all of these services for every application.
Think of AWS as a toolbox. You don’t use every tool in the toolbox to build a single application. You pick the tools that solve the problems you actually have.
This is also why learning AWS service-by-service can be confusing. It’s more useful to first understand the basic building blocks of an application and then learn which AWS service provides each one.
The next important concept is where these AWS services actually run. To understand that, we need to look at Regions and Availability Zones.



AWS Regions and Availability Zones

When you create something on AWS, you are not putting it into one giant cloud somewhere. AWS has physical infrastructure in different parts of the world.
This is where Regions and Availability Zones come in.
An AWS Region is a geographic area where AWS has data centers. For example, AWS has Regions in places such as the United States, Europe, Asia, and Australia. When you deploy an application, you normally choose the Region where you want your resources to run.
Inside a Region, AWS has multiple Availability Zones (AZs). An Availability Zone is an isolated location within a Region. Each Availability Zone consists of one or more separate data centers with independent infrastructure.
You can think of it like this:
AWS Region with three Availability Zones and separate infrastructure.

Why have multiple Availability Zones?
Because putting everything in one location creates a single point of failure. If that location has a major problem, your application could become unavailable.
Instead, you can run application components across multiple Availability Zones. If one AZ has a problem, another AZ can continue serving your application.
For example, you might run your application servers in two Availability Zones while keeping your database configured for high availability.
The important distinction is simple:
Region = geographic area
Availability Zone = isolated infrastructure location inside a Region



The Building Blocks of an AWS Application

Now that we understand what AWS is and how Regions and Availability Zones are organized, let’s look at what an actual application needs.
Whether you are running a small web application or a large production system, the basic building blocks are often similar:
  • Compute: Where your application code runs
  • Storage: Where files and other objects are stored
  • Database: Where application data is kept
  • Networking: How different parts of the application communicate
  • Security: Who can access which resources
AWS provides different services for each of these building blocks.

Compute

Your application needs somewhere to run its code.
In a traditional setup, this would be a physical server. In AWS, you can use services such as Amazon EC2 to create virtual servers.
For example, if you have a Spring Boot application, you could run the application on an EC2 instance. The instance provides the CPU, memory, operating system, and other resources needed to run your application.
AWS also provides other compute options, such as containers and serverless services. The right choice depends on how much control you need and how you want to run your application.
The basic idea is simple:
Compute = the place where your application runs.

Storage

Applications often need to store files such as images, videos, documents, backups, and logs.
For this, AWS provides services such as Amazon S3.
S3 is object storage. Instead of thinking about files on a server’s disk, you can think of it as a place where your application stores and retrieves objects.
For example, when a user uploads a profile picture, your application could store that image in an S3 bucket and keep the image’s location in the database.
Storage = where your application keeps files and objects.

Database

Most applications also need to remember information.
A shopping application needs products, users, orders, and payments. A social application needs users, posts, comments, and relationships.
This is where a database comes in.
AWS provides managed database services such as Amazon RDS, which can run relational databases such as PostgreSQL and MySQL without requiring you to manage the underlying database server yourself.
Your application can connect to the database and read or update the data it needs.
Database = where your application’s structured data lives.

Networking

Your application components need to communicate with each other.
A user needs to reach your application. Your application server needs to reach the database. It may also need to communicate with storage or other services.
AWS provides networking services such as Amazon VPC to create and control the network in which your resources operate.
Networking determines things such as which resources can communicate, which resources can be reached from the internet, and how traffic moves between different components.
Networking = how your application components communicate.

Security

All of these resources need to be protected.
You don’t want every person on the internet to access your database. You also don’t want every application component to have permission to access every other resource.
AWS provides services such as AWS Identity and Access Management (IAM) to control who can access AWS resources and what they are allowed to do.
Security also includes things such as network rules, encryption, authentication, and access control.
Security = who can access your resources and what they can do.
Once you put these pieces together, an AWS application starts to look much less complicated. You have code that needs to run, data that needs to be stored, a database that needs to hold application information, a network connecting everything, and security controlling access.



Let’s Build a Simple Application on AWS

Let’s put the pieces together with a simple example.
Imagine we are building a small web application. Users should be able to open the application in their browser, view data, and upload images.
We don’t need a complicated architecture to start. We can build it with a few AWS components:
Simple AWS web application architecture showing Users, Load Balancer, EC2, RDS, and S3.

At the front, we have a Load Balancer. Its job is to receive requests from users and send them to the application servers. For this example, we’ll use an AWS load balancer to distribute incoming requests across our application servers.
Behind it, we have two EC2 instances running our application. Having more than one server can improve availability because the load balancer can continue sending traffic to a healthy instance if another instance becomes unavailable. It also gives us a way to handle more traffic.
The application servers need somewhere to store application data, so they connect to Amazon RDS. This could be a PostgreSQL or MySQL database containing users, orders, products, or other application data.
For files such as profile pictures or documents, we can use Amazon S3 instead of storing those files directly on the application servers.
There is also a network connecting these components. In AWS, we can create this network using an Amazon VPC (Virtual Private Cloud), which provides an isolated network environment for our application. We can use the VPC and its networking components to control how resources communicate with each other and with the internet. Application resources such as EC2 instances and databases can be placed within the VPC and organized into subnets based on their networking requirements.
Security rules determine what can be accessed and from where. For example, users should be able to reach the load balancer, but the database should not be directly accessible from the public internet.
Notice that we haven’t used dozens of AWS services. We only selected the services needed for this particular application.
That’s an important way to think about AWS architecture. Start with the application’s requirements, identify the building blocks you need, and then choose the AWS services that provide those capabilities.
But there is still one question: what actually happens when a user opens this application?
Let’s follow a request from the user’s browser all the way through the AWS infrastructure.



What Happens When a User Opens Your Application?

We now have an application running on AWS. But what actually happens when someone types your website address into a browser?
Let’s follow one request.
Imagine a user opens:  https://myapp.com 
The browser first needs to find where  myapp.com  is hosted. This is where DNS comes in. DNS helps the browser find where  myapp.com  should send the request by resolving the domain name through DNS records.
The request then travels across the internet and reaches the application’s Load Balancer.
The Load Balancer decides which application server should handle the request. If we have two EC2 instances, it can send the request to one of them.
How a web request flows through AWS from the browser to the application and back.

The EC2 instance receives the request and our application code processes it.
For example, if the user opens a page showing their profile, the application might query RDS to retrieve the user’s information.
If the page contains a profile picture, the application might retrieve that image from S3.
The application then creates a response and sends it back through the Load Balancer and across the internet to the user’s browser.
From the user’s perspective, this feels like one simple action: opening a website.
Behind that action, several components are working together:
DNS finds the application. The network carries the request. The Load Balancer routes traffic. EC2 runs the application code. RDS provides application data. S3 provides stored files. Security rules control which components can communicate.
This is one of the most useful mental models to have when learning cloud architecture. Instead of seeing AWS as a collection of unrelated services, you can follow a request and understand the role each component plays.
And there is one important part we haven’t looked at closely yet: security. Every connection and every resource in this architecture needs appropriate access controls.



Where Does Security Fit?

Security isn’t a separate step that you add after building your application. It is part of every layer of the architecture.
Think about the simple application we built earlier. Users connect to the Load Balancer, the Load Balancer sends traffic to the EC2 instances, and the application communicates with RDS and S3.
Each of these connections needs appropriate access controls.
For example, the Load Balancer needs to be reachable by users, but your database usually should not be directly accessible from the public internet.
Your EC2 instances may need permission to read files from S3, but that doesn’t mean they should have permission to delete every file in your AWS account.
AWS provides several tools to control this.
IAM controls identities and permissions. It determines who or what can access AWS resources and what actions they are allowed to perform.
Security groups control network traffic to and from resources such as EC2 instances.
You can also use encryption to protect data, authentication to verify users, and other AWS security services depending on the application’s requirements.
A useful way to think about it is:
Users
│
▼
Load Balancer
│
▼
EC2
│
├──────────► RDS
│
└──────────► S3
Security controls access at each layer.
The goal isn’t to make everything inaccessible. The goal is to allow the right access to the right resources.
This idea becomes especially important as an application grows. More servers, databases, users, and AWS services mean more permissions and network connections to manage.
For now, remember one simple principle: every resource should have only the access it actually needs.
Security is part of the architecture, not something added at the end.



Cloud Doesn’t Mean “No Servers”

The word cloud can make it sound like servers have disappeared.
They haven’t.
When you run an application on AWS, your application is still running on physical computers somewhere in an AWS data center. Those computers have processors, memory, storage, networking equipment, power systems, and cooling.
The difference is who manages the physical infrastructure.
With your own server, you might be responsible for buying the hardware, setting it up, replacing failed components, managing power and cooling, and maintaining the physical environment.
With AWS, Amazon manages the underlying physical infrastructure. You interact with cloud services instead of directly managing the physical machines.
For example, when you create an EC2 instance, you’re getting access to compute capacity provided by AWS. You don’t need to walk into a data center and install a server yourself.
Your Application
│
▼
AWS Services
│
▼
Physical Infrastructure
│
├── Data Centers
├── Servers
├── Storage
└── Networking
This is one of the most important ideas to remember:
The cloud is still physical infrastructure. It is simply infrastructure that you consume through a cloud provider instead of owning and managing it yourself.
That distinction will also help us understand exactly where the responsibility between you and AWS begins and ends.



What Does AWS Actually Manage?

Now we know that the cloud still runs on physical infrastructure. So what does AWS actually take care of for us?
The answer depends on which AWS service you are using, but AWS generally manages the infrastructure that makes its cloud services available.
This includes things such as physical data centers, servers, networking equipment, power, cooling, and the underlying hardware.
For example, when you create an EC2 instance, you don’t need to buy a physical server or maintain the data center where that server is running. AWS takes care of that underlying infrastructure.
But AWS doesn’t manage everything for you.
You are still responsible for things such as your application code, your data, user access, and many configuration decisions. With EC2, you also have more responsibility for the operating system and software running on the instance.
This is often described as the shared responsibility model.
AWS
├── Physical Infrastructure
├── Data Centers
├── Hardware
└── Underlying Cloud Infrastructure

YOU
├── Application
├── Data
├── Access Permissions
└── Service Configuration
The exact division changes depending on the service. A managed database service, for example, removes more infrastructure work from you than running a database yourself on an EC2 instance.
This is an important part of working with AWS. Moving to the cloud doesn’t remove responsibility. It changes which responsibilities you have and which ones AWS handles for you.
Understanding that difference will help you make better decisions when choosing AWS services.



Is AWS Always the Right Choice?

AWS can solve a lot of infrastructure problems, but that doesn’t mean every application needs AWS.
For a small application, a traditional hosting provider or a simple virtual server might be easier to understand and cheaper to operate. If your application has very little traffic and doesn’t need much infrastructure, using a large collection of cloud services may add unnecessary complexity.
AWS also introduces a learning curve. There are many services, configuration options, permissions, networking concepts, and pricing considerations to understand.
Cost is another factor. Cloud resources are usually charged based on usage, so you need to understand what resources your application is using and how much they cost. A poorly configured application can consume more resources than expected.
On the other hand, AWS becomes more useful when your application needs things such as flexible infrastructure, multiple deployment environments, high availability, managed services, or the ability to scale as demand changes.
So the better question isn’t “Is AWS the best platform?”
It’s “Does AWS make sense for this application’s requirements?”
The answer will be different for a personal project, a small startup, and a large production system.
Cloud technology is a tool. The goal isn’t to use as many cloud services as possible. The goal is to choose infrastructure that fits the application, the team, and the requirements.



Where Do We Go From Here?

At this point, you should have a basic mental model of how AWS fits together.
You know that cloud computing means using infrastructure through a cloud provider instead of managing all the physical infrastructure yourself. You know that AWS provides services for compute, storage, databases, networking, and security. You also know that AWS infrastructure is organized into Regions and Availability Zones.
More importantly, you can now look at a simple AWS architecture and understand what the major pieces are doing.
But this is only the beginning.
There is much more to learn. You can explore how EC2 instances work, how VPCs and subnets organize networks, how load balancers distribute traffic, how RDS manages databases, and how IAM controls access.
You can also start looking at other approaches, such as containers and serverless applications, and understand why you might choose them instead of running everything directly on EC2.
The best way to learn these concepts is to build something. Instead of trying to memorize every AWS service, start with a simple application and gradually add the infrastructure it needs.
For now, the important thing is that AWS should no longer look like a long list of unfamiliar services. You have a map. The next step is learning how to use each part of it.



Conclusion

AWS can look complicated when you first see the number of services available. But the underlying ideas are much simpler.
An application needs somewhere to run, somewhere to store files and data, a network that connects its components, and security controls that protect those resources. AWS provides services for each of these needs and lets you combine them into an architecture that fits your application.
You also don’t need to learn every AWS service before you can start building. Start with the problem your application needs to solve, identify the infrastructure it requires, and then learn the AWS services that provide those capabilities.
The most useful thing you can take away from this article is the mental model.
AWS is not just a collection of cloud services. It is a way to consume computing infrastructure without having to own and manage all of the physical infrastructure yourself.
Once that idea becomes clear, services such as EC2, S3, RDS, VPC, and IAM start to make more sense because you can understand the problem each one solves.



Thanks for Reading!

Thanks for taking the time to read this article.
If you’re interested in understanding the infrastructure behind modern applications, you might also enjoy my previous article:

 SSH Explained: How Developers Connect to Remote Servers 

Before working with cloud infrastructure, it’s useful to understand how developers securely connect to remote servers. This article explains what SSH is, how it works, how authentication works, and how developers use it to connect to Linux servers.
Read the SSH article:  SSH Explained 
If you found it useful, feel free to follow me for more articles about AWS, cloud infrastructure, DevOps, system design, and software development.
Connect with me:
See you in the next article!
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article