A cloud lab that cannot surprise you with a bill
Practise cloud networking and services using free tiers and local emulation, with budget alerts and a tear-down habit so that learning never costs more than you intend.
What you need
Cloud providers charge for what you leave running, and mistakes are expensive. The safe way to learn has three habits: free tiers, alerts and tear-down.
- Free tiers. The large providers each offer a free tier or trial credit for new accounts, with limits that change. Read the current terms on the provider’s own site before you sign up: what is free, for how long, and what happens when it ends.
- Local alternatives. A lot of cloud practice needs no account at all: containers and a local Kubernetes cluster (see the container lab guide), virtual machines with internal networks (virtual machine lab guide) and open-source tools such as Terraform, OpenTofu and LocalStack-style emulators for infrastructure-as-code practice.
- Your own notes. Keep a list of every resource you create in a lab, so that nothing is forgotten.
Set it up
- Before creating any resource, set a budget and alert at a very low amount (for example the price of one coffee) so you are emailed when spending starts. Find “Budgets” or “Billing alerts” in the provider’s console.
- Enable multi-factor authentication on the account and never use the root or owner login for day-to-day work; create a separate user with limited permissions.
- Install the provider’s command-line tool and configure it with the limited user’s credentials. Store keys in the tool’s credentials file, never in code.
- Choose a single region near you and use it for everything, so resources are easy to find and delete.
- Create something small (one virtual network, one tiny virtual machine) and note it in your list.
Check that it works
- The command-line tool can list your resources (for example the networks in your region) without errors.
- Your budget alert exists and shows a monthly limit.
- You can delete what you created and the console shows nothing left running.
Practise safely
- Tear down every session. Delete virtual machines, disks, load balancers, public addresses and NAT gateways when you finish; some of these cost money even when idle.
- Never commit access keys to a repository. Leaked keys are found and abused by bots within minutes. If one leaks, revoke it at once.
- Never open management ports (SSH, RDP, databases) to the whole internet in a lab; restrict them to your own address.
- Do not store real customer or personal data in lab accounts.
- Check the billing page the next day: it is the easiest way to catch a forgotten resource.
Go further
- Build the networking from the course twice: once in the console by clicking, once as code (Terraform or the provider’s templates), then delete it with one command.
- Design a small two-tier network with public and private subnets, a route table and a security group, and test which connections are allowed.
- Practise cost estimation: before creating anything, estimate the monthly cost with the provider’s calculator, then compare with the bill.
- Connect your local lab to a free-tier cloud network with a site-to-site or client VPN and test the tunnel.
Courses that use this lab
Other lab guides
- A virtual machine lab on your own computer
- A Linux practice machine
- A network lab with free simulators and virtual routers
- A packet-capture lab with Wireshark and tcpdump
- A network-services lab: DHCP, DNS, proxy, load balancer, time and failover
- A Windows Server and Active Directory lab
- A developer workstation: editor, Git, Python and Node
- A container and Kubernetes lab
- A monitoring lab with Prometheus and Grafana
- A security operations (SOC) practice lab
- An isolated security lab for authorised practice
- An embedded and microcontroller lab: simulators first, hardware second
- An electronics lab: simulate first, then build on a breadboard
- A Raspberry Pi lab, with or without a Pi
- A home automation lab with Home Assistant and MQTT
- An audio, video, streaming and show-control lab
- A data lab: Python, pandas and Jupyter on your own computer
- A machine learning lab: scikit-learn, notebooks and honest experiments
- An LLM lab: a free local model, embeddings and a test harness
- A TypeScript lab: Node.js, the compiler and a test runner
- A web deployment lab: Git, a free host and environment settings
Software changes quickly. Menu names and version numbers may differ a little from what you see; the ideas and the check at the end of each section stay the same. Always download from the project's own website, and read the licence terms for your situation.