Week 14 - Infrastructure as Code


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

CC BY-NC-SA 4.0 Icons

Built with ❤️ by the HackYourFuture community · Thank you, contributors

Found a mistake or have a suggestion? Let us know in the feedback form.

Why use Infrastructure as Code

IaC concepts

Azure Bicep

Bicep in practice

Deploy Bicep from CI/CD

Practice

Assignment

Gotchas & Pitfalls

Glossary: Week 14

Career relevance: Week 14

History of IaC

Slides (PDF)

hyf_week_14_edited-subtitled.mp4

hyf_week_14_transcript.txt

Week 14 - Infrastructure as Code

Welcome to Week 14! Every Azure resource you have used so far, the shared Postgres database, the storage account, the Container Apps job, was provisioned for you. In Week 6 you even ran az group list and found you were blocked from creating a resource group yourself. This week you learn how teams create that infrastructure properly: not by clicking through the portal, but by writing it as code.

Infrastructure as Code (IaC) means defining your cloud resources in version-controlled files that you deploy the same way every time. On Azure, the native tool for this is Bicep.

By the end of this week, you will author Bicep templates, deploy them with the Azure CLI, refactor them into reusable modules, preview and apply them from GitHub Actions, and tear them down cleanly: the reproducible-infrastructure skill the final-project capstone needs.

Learning goals

Chapters

  1. Why use Infrastructure as Code
  2. IaC concepts
  3. Azure Bicep
  4. Bicep in practice
  5. Deploy Bicep from CI/CD
  6. Practice
  7. Assignment: Infrastructure as Code
  8. Gotchas & Pitfalls

Glossary: Week 14

Career relevance: Week 14

History of IaC

Optional out-of-week reading: Bonus - AI-assisted data enrichment

Overview

IaC tool landscape

Layers of IaC

Advanced Bicep

Deleting infrastructure

Checking a template before you deploy

Modules at scale