IaaS - Infrastructure as a Service
What is IaaS?
Infrastructure as a Service (IaaS) is a cloud computing model that provides virtualized computing resources over the internet, including virtual machines, storage, and networking. Instead of purchasing physical hardware, businesses rent this infrastructure from a cloud provider, giving them full control over operating systems and applications while the provider manages the underlying hardware.
Key Benefits of IaaS
IaaS offers high scalability, allowing businesses to quickly increase or decrease resources based on demand. It also reduces the cost and complexity of buying and managing physical servers, improves business continuity through reliable backup and disaster recovery options, and provides greater control compared to other cloud service models.
Common IaaS Use Cases
IaaS is widely used for website hosting, big data analysis, high-performance computing, testing and development environments, and disaster recovery. Popular examples include Amazon EC2, Microsoft Azure Virtual Machines, and Google Compute Engine.
Who Manages What: IaaS Compared With Other Models
The clearest way to understand IaaS is to see which layers you still look after. In every cloud model, the provider takes some layers and you keep the rest.
| Layer | On-premises | IaaS | PaaS | SaaS |
|---|---|---|---|---|
| Data and user access | You | You | You | You |
| Application code | You | You | You | Provider |
| Runtime and middleware | You | You | Provider | Provider |
| Operating system and patches | You | You | Provider | Provider |
| Virtualisation, servers, storage, network hardware | You | Provider | Provider | Provider |
| Data centre, power, cooling | You | Provider | Provider | Provider |
So with IaaS you are free to install any software, but you are also responsible for patching the OS, configuring firewalls and backing up data on the machines.
Worked Example: Launching a Web Server
Most IaaS platforms follow the same sequence, whatever the provider:
- Create a network (a VPC or virtual network) and a subnet.
- Define firewall rules: allow HTTP and HTTPS from the internet, and allow SSH only from your own IP address.
- Choose a machine image, such as Ubuntu, and a size based on CPU and memory needs.
- Attach a key pair for secure login instead of a password.
- Start the VM, connect over SSH and install the web server.
- Attach monitoring, backups and alerts before real users arrive.
On Azure, the first VM can be created with a single CLI command, and the same idea exists on AWS:
# Azure
az group create --name rg-demo --location centralindia
az vm create --resource-group rg-demo --name web01 --image Ubuntu2204 --size Standard_B1s --admin-username azureuser --generate-ssh-keys
az vm open-port --resource-group rg-demo --name web01 --port 80
# AWS
aws ec2 run-instances --image-id ami-xxxxxxxx --instance-type t3.micro --key-name my-key --security-group-ids sg-xxxxxxxx --subnet-id subnet-xxxxxxxx
# After connecting with SSH
sudo apt update && sudo apt install -y nginx
Opening the VM's public IP in a browser should now show the nginx welcome page. Replace the placeholder IDs with real ones from your account.
When IaaS Is the Right Choice
- Lift-and-shift migrations where existing applications expect a full server.
- Custom or legacy software that needs a specific OS version, driver or kernel setting.
- Full control over networking and security tools, such as running your own proxy or monitoring agent.
- Short-lived heavy workloads like batch processing, where machines are created and destroyed on demand.
If you only want to deploy code without managing servers, a PaaS offering is usually simpler. If an off-the-shelf product meets the need, SaaS removes even more effort.
Mistakes New IaaS Users Make
- Leaving SSH or RDP open to every IP address on the internet instead of restricting it or using a bastion service.
- Never patching the OS because "the cloud handles it"; in IaaS, it does not.
- Choosing large VM sizes out of caution and paying for idle capacity.
- Forgetting stopped VMs still have disks and public IPs that may be billed.
- Keeping data only on the VM disk with no snapshot or backup plan.
- Building servers by hand each time instead of using templates or infrastructure as code, which makes environments drift apart.
Ready to Master Cloud Computing?
Join Uncodemy's industry-recognized Cloud Computing Course and build in-demand cloud skills with expert mentors.
Explore Cloud Computing Course