
This lecture steps outside Terraform to survey the three major configuration management tools — Ansible, Chef, and Puppet — along the two big architectural axes: agent vs agentless and push vs pull. It shows why Ansible's agentless, push-based model matters for the cloud, and stresses that all three configure servers that already exist. After this lecture, you'll be able to compare Ansible, Chef, and Puppet on agent and push/pull design, explain why agentless suits cloud environments, and draw the boundary where configuration management ends and Terraform's creation of servers begins.
This lecture draws a clean, memorable line between provisioning (does the resource exist with the right attributes — Terraform's job) and configuration (what's installed and running inside it — the CM tool's job), and shows why production stacks use both. It also handles the boundary case of bootstrap scripts like user data and cloud-init. After this lecture, you'll be able to sort a real infrastructure task into provisioning or configuration, decide when to reach for Terraform versus Ansible, Chef, or Puppet, and reason about where bootstrap scripts sit on that line.
This lecture gives the big-picture view of Terraform: open source at its core, vendor-neutral by design, and its journey from HashiCorp in 2014 to the 2025 IBM acquisition, including why the free CLI remains safe to depend on. It explains why the course starts on the free local and random providers, since the same HCL and workflow carry across every provider. After this lecture, you'll be able to describe Terraform's open-source and vendor-neutral properties, summarize its ownership timeline, and explain why mastering the mechanics on local and random transfers to every cloud.
This lecture builds the three-level mental model that underlies everything in the course: Terraform as the engine, providers as plugins, resources as the manageable things those plugins expose, and the resource block as the HCL that declares one. The point is that this pattern never changes regardless of which cloud or system you target. After this lecture, you'll be able to explain the engine–provider–resource hierarchy, recognize a resource block as the declaration of one managed thing, and understand why learning a new provider only means learning its resource types.
This lecture looks inside the curly braces of a resource block — the arguments, written as key-value pairs, that actually describe the desired state. It covers where valid argument names come from (each resource type's schema), the difference between required and optional arguments, and what happens when you use a name that doesn't exist. After this lecture, you'll be able to read and write resource arguments fluently, distinguish required from optional ones, and recognize an unknown-argument schema error for what it is.
This lecture explains how Terraform combines a resource type and a local name into a single address that must be unique within a module, why neither half alone is enough, and how the same local name can safely coexist under different resource types. It also shows how that full address is used to reference one resource's attribute from another and how state commands operate on it. After this lecture, you'll be able to construct valid resource addresses, reason about local-name uniqueness per type, and reference an attribute across resources using the type-dot-name address.
This lecture covers the shape of HashiCorp Configuration Language — blocks with labels and braces, and arguments carrying strings, numbers, bools, lists, and maps — plus one of Terraform's most important behaviors: every .tf file in a directory is automatically scanned and merged into one logical configuration. It also establishes the rule that a single resource block must be complete in one place. After this lecture, you'll be able to read HCL block structure and value types, explain how multiple .tf files merge, and apply the rule that a resource block cannot be split across files.
This lecture tours registry.terraform.io and builds the research habit that carries through the rest of the course: every resource doc page has an Argument Reference for inputs and an Attribute Reference for outputs, with required versus optional spelled out. It uses local_file and random_pet as the first two resources to look up. After this lecture, you'll be able to navigate the Registry to a resource's documentation, read its Argument and Attribute References, and confidently find the arguments a new resource type needs instead of memorizing them.
This hands-on lab creates the project scaffold every Terraform lab in the course starts from: a clean directory and a single empty main.tf, with no cloud credentials, provider downloads, or state files yet. It explains why there is no "terraform new" command and why main.tf is the standard convention. After this lecture, you'll be able to scaffold a Terraform project from scratch, explain the role of the main.tf convention, and start every future lab from a clean, correct slate.
This hands-on lab creates the project scaffold every Terraform lab in the course starts from: a clean directory and a single empty main.tf, with no cloud credentials, provider downloads, or state files yet. It explains why there is no "terraform new" command and why main.tf is the standard convention. After this lecture, you'll be able to scaffold a Terraform project from scratch, explain the role of the main.tf convention, and start every future lab from a clean, correct slate.
In this hands-on lab you write your first real resource block using local_file — chosen because it needs no cloud account, network, or credentials — complete with its type and name labels and the two required arguments, filename and content. No Terraform commands are run yet; the focus is clean HCL first. After this lecture, you'll be able to write a syntactically correct local_file resource block, explain what the TYPE and NAME labels mean, and reproduce the shape that every HCL resource block shares.
In this hands-on lab you write your first real resource block using local_file — chosen because it needs no cloud account, network, or credentials — complete with its type and name labels and the two required arguments, filename and content. No Terraform commands are run yet; the focus is clean HCL first. After this lecture, you'll be able to write a syntactically correct local_file resource block, explain what the TYPE and NAME labels mean, and reproduce the shape that every HCL resource block shares.
In this hands-on lab you run terraform init for the first time against the local_file configuration, watching it scan the .tf files to infer required providers, download the provider binaries from the Registry, and write the .terraform.lock.hcl lock file — then run it a second time to see how it behaves once providers are installed. After this lecture, you'll be able to run terraform init on a project, read its output, explain how it detects providers and what the lock file guarantees, and know when init needs to be run again.
In this hands-on lab you run terraform init for the first time against the local_file configuration, watching it scan the .tf files to infer required providers, download the provider binaries from the Registry, and write the .terraform.lock.hcl lock file — then run it a second time to see how it behaves once providers are installed. After this lecture, you'll be able to run terraform init on a project, read its output, explain how it detects providers and what the lock file guarantees, and know when init needs to be run again.
This lecture lifts the lid on what terraform init writes to disk, walking through the hidden .terraform directory — the real provider binary inside it, organized by registry, namespace, version, and platform — and the lock file that pins versions for reproducibility. It stresses that neither is ever hand-edited and the whole cache is safe to delete and regenerate. After this lecture, you'll be able to navigate the .terraform directory layout, identify the provider binary and lock file, and explain why the cache is disposable and regenerable.
In this hands-on lab you write main.tf, initialize the workspace, and run terraform plan as a dry-run that computes exactly what would be created, updated, or destroyed without touching anything real. It teaches how to read the +/−/~ prefixes, the plan summary line, and the fact that plan writes no files. After this lecture, you'll be able to run terraform plan, interpret every line of its diff and summary, and build the habit of reviewing the plan before any real change is made.
In this hands-on lab you write main.tf, initialize the workspace, and run terraform plan as a dry-run that computes exactly what would be created, updated, or destroyed without touching anything real. It teaches how to read the +/−/~ prefixes, the plan summary line, and the fact that plan writes no files. After this lecture, you'll be able to run terraform plan, interpret every line of its diff and summary, and build the habit of reviewing the plan before any real change is made.
In this hands-on lab you run terraform apply for the first time, review the plan it shows, pass through the approval gate by typing exactly yes, and watch your first real resource come to life on disk. It emphasizes the plan-apply contract: the plan you reviewed is the plan that executes. After this lecture, you'll be able to run terraform apply end to end, explain the purpose of the yes approval gate, read the apply output, and follow the read-the-plan-then-confirm rhythm on every future apply.
In this hands-on lab you run terraform apply for the first time, review the plan it shows, pass through the approval gate by typing exactly yes, and watch your first real resource come to life on disk. It emphasizes the plan-apply contract: the plan you reviewed is the plan that executes. After this lecture, you'll be able to run terraform apply end to end, explain the purpose of the yes approval gate, read the apply output, and follow the read-the-plan-then-confirm rhythm on every future apply.
This lecture builds the reflex of independently verifying a Terraform apply using plain filesystem commands, ls and cat, to confirm the declared state actually matches reality on disk — outside of what Terraform itself reports. It also covers what to do when the file isn't there and how this habit scales to the cloud. After this lecture, you'll be able to cross-check a Terraform apply against real-world state, troubleshoot a missing resource, and apply the same trust-but-verify habit that surfaces drift later in the course.
This lecture explores Terraform's self-healing behavior by walking through deleting a managed file by hand to simulate drift, then showing how the next apply detects the difference and restores exactly what was declared. It covers what drift is, how Terraform detects it, and the full drift-detection and self-healing lifecycle. After this lecture, you'll be able to define drift, explain how Terraform detects and corrects it on the next apply, and articulate why continuous enforcement of desired state makes Terraform reliable at scale.
This lecture explains idempotency as a deliberate design property of every Terraform apply: when infrastructure already matches the configuration, Terraform reports "No changes" and does nothing — a guarantee a silent bash re-run can't offer. It connects that guarantee directly to the safety of scheduled jobs and CI/CD pipelines. After this lecture, you'll be able to define idempotency, explain how Terraform achieves it, contrast it with a re-run bash script, and reason about why it makes wiring terraform apply into automation safe.
This lecture closes the full lifecycle loop — init, plan, apply, destroy — by explaining the two pieces left unexplained until now: the terraform.tfstate file that tracks every managed resource, and the terraform destroy command that safely tears everything down step by step. After this lecture, you'll be able to describe what the state file tracks, walk through how terraform destroy works, and explain the complete init-plan-apply-destroy lifecycle that every later provider follows unchanged.
This hands-on lab introduces the random provider, explaining why real projects need non-deterministic values like unique name suffixes and initial passwords, how to declare the provider in a required_providers block, and how generated values stay stable once created. You run terraform init to watch the provider download before writing a single resource. After this lecture, you'll be able to explain the random provider's real-world use cases, declare it correctly in HCL, and understand why a required_providers block alone triggers a provider download on init.
This hands-on lab introduces the random provider, explaining why real projects need non-deterministic values like unique name suffixes and initial passwords, how to declare the provider in a required_providers block, and how generated values stay stable once created. You run terraform init to watch the provider download before writing a single resource. After this lecture, you'll be able to explain the random provider's real-world use cases, declare it correctly in HCL, and understand why a required_providers block alone triggers a provider download on init.
This hands-on lab puts random_pet to work, using its length, separator, and prefix arguments to generate a memorable adjective-animal identifier like demo-happy-giraffe. You write a main.tf, run a full apply, and use terraform state show to inspect the generated name without writing an output block. After this lecture, you'll be able to configure a random_pet resource, explain why its value stays stable across applies, and read a generated value directly from state with terraform state show.
This hands-on lab puts random_pet to work, using its length, separator, and prefix arguments to generate a memorable adjective-animal identifier like demo-happy-giraffe. You write a main.tf, run a full apply, and use terraform state show to inspect the generated name without writing an output block. After this lecture, you'll be able to configure a random_pet resource, explain why its value stays stable across applies, and read a generated value directly from state with terraform state show.
This hands-on lab covers random_string and random_password — which share identical character-set and length arguments, but where random_password automatically marks its result sensitive so it's never printed in plan or apply output. You write both blocks, run the full workflow, and inspect state to see what sensitive marking does and does not do. After this lecture, you'll be able to generate controlled random strings and passwords, explain what sensitive marking protects in logs and console output, and recognize why it is not a substitute for a secured remote backend.
This hands-on lab covers random_string and random_password — which share identical character-set and length arguments, but where random_password automatically marks its result sensitive so it's never printed in plan or apply output. You write both blocks, run the full workflow, and inspect state to see what sensitive marking does and does not do. After this lecture, you'll be able to generate controlled random strings and passwords, explain what sensitive marking protects in logs and console output, and recognize why it is not a substitute for a secured remote backend.
This hands-on lab explores two collision-resistant identifier resources: random_id, whose byte_length controls a compact multi-format token, and random_uuid, which produces a standard RFC 4122 UUID with zero arguments. You see the multiple encoded formats random_id exposes and when each resource is the right choice. After this lecture, you'll be able to generate unique identifiers with random_id and random_uuid, control random_id's output size with byte_length, and choose between the two for a given resource-suffix or correlation-token scenario.
This hands-on lab explores two collision-resistant identifier resources: random_id, whose byte_length controls a compact multi-format token, and random_uuid, which produces a standard RFC 4122 UUID with zero arguments. You see the multiple encoded formats random_id exposes and when each resource is the right choice. After this lecture, you'll be able to generate unique identifiers with random_id and random_uuid, control random_id's output size with byte_length, and choose between the two for a given resource-suffix or correlation-token scenario.
This hands-on lab covers the last two classic random generators: random_integer, which returns a bounded whole number in a min-max range, and random_shuffle, which randomizes a list's order so you can pick from a candidate set. You wire both into a real main.tf, apply, and inspect state, including the result_count = 1 trap of indexing into a shuffle result. After this lecture, you'll be able to generate bounded random numbers and shuffled selections, explain the difference between a number and a list result, and index correctly into random_shuffle when you need a single string.
This hands-on lab covers the last two classic random generators: random_integer, which returns a bounded whole number in a min-max range, and random_shuffle, which randomizes a list's order so you can pick from a candidate set. You wire both into a real main.tf, apply, and inspect state, including the result_count = 1 trap of indexing into a shuffle result. After this lecture, you'll be able to generate bounded random numbers and shuffled selections, explain the difference between a number and a list result, and index correctly into random_shuffle when you need a single string.
This hands-on lab builds your first real multi-provider project, wiring a random_pet resource's output into a local_file's filename and content using the type-dot-name-dot-attribute reference pattern — with Terraform ordering the resources automatically through an implicit dependency, no explicit declaration needed. After this lecture, you'll be able to combine the local and random providers in one configuration, use attribute references to feed one resource's output into another, and explain how implicit dependencies drive Terraform's automatic ordering.
This hands-on lab builds your first real multi-provider project, wiring a random_pet resource's output into a local_file's filename and content using the type-dot-name-dot-attribute reference pattern — with Terraform ordering the resources automatically through an implicit dependency, no explicit declaration needed. After this lecture, you'll be able to combine the local and random providers in one configuration, use attribute references to feed one resource's output into another, and explain how implicit dependencies drive Terraform's automatic ordering.
This hands-on lab focuses on the required_providers block: declaring multiple providers with their source addresses and version constraints, the twiddle-wakka versus explicit-range syntax, and the separate required_version argument that pins the Terraform CLI itself. You deliberately break a constraint, read the error, fix it, and run a clean init. After this lecture, you'll be able to declare multiple providers with pinned versions, distinguish provider constraints from required_version, and diagnose and fix an unsatisfiable version constraint for reproducible team and CI runs.
This hands-on lab focuses on the required_providers block: declaring multiple providers with their source addresses and version constraints, the twiddle-wakka versus explicit-range syntax, and the separate required_version argument that pins the Terraform CLI itself. You deliberately break a constraint, read the error, fix it, and run a clean init. After this lecture, you'll be able to declare multiple providers with pinned versions, distinguish provider constraints from required_version, and diagnose and fix an unsatisfiable version constraint for reproducible team and CI runs.
This hands-on lab combines random_pet and local_file to generate a config artifact whose filename is unique every apply but whose content stays structured and self-describing, using path interpolation and a heredoc for clean HCL content. The local_file resource creates the intermediate configs/ directory automatically. After this lecture, you'll be able to build a randomly-named, self-describing config file with the random and local providers, use heredoc content and path interpolation in local_file, and recognize this as a reusable per-environment artifact pattern.
This hands-on lab combines random_pet and local_file to generate a config artifact whose filename is unique every apply but whose content stays structured and self-describing, using path interpolation and a heredoc for clean HCL content. The local_file resource creates the intermediate configs/ directory automatically. After this lecture, you'll be able to build a randomly-named, self-describing config file with the random and local providers, use heredoc content and path interpolation in local_file, and recognize this as a reusable per-environment artifact pattern.
This hands-on lab pipes random_password into local_file content to produce a credentials file with owner-only permissions, and confirms that Terraform redacts the sensitive value in its output. It's also an honest look at the security trade-offs of writing secrets to disk and why this pattern is a stepping stone toward a real secrets manager. After this lecture, you'll be able to wire a generated password into a permission-locked credentials file, verify sensitive redaction in Terraform's output, and articulate why writing secrets to disk is a temporary rather than final solution.
This hands-on lab pipes random_password into local_file content to produce a credentials file with owner-only permissions, and confirms that Terraform redacts the sensitive value in its output. It's also an honest look at the security trade-offs of writing secrets to disk and why this pattern is a stepping stone toward a real secrets manager. After this lecture, you'll be able to wire a generated password into a permission-locked credentials file, verify sensitive redaction in Terraform's output, and articulate why writing secrets to disk is a temporary rather than final solution.
This hands-on lab tackles the keepers argument — a map Terraform watches between applies so that changing any value in it destroys and recreates the random resource with a fresh value, replacing rather than updating it. Random resources are stable by default and rotatable on demand. After this lecture, you'll be able to use keepers to control exactly when a random_* resource regenerates, explain why the change is always a replace not an update, and apply this pattern to deliberate credential and name rotation.
This hands-on lab tackles the keepers argument — a map Terraform watches between applies so that changing any value in it destroys and recreates the random resource with a fresh value, replacing rather than updating it. Random resources are stable by default and rotatable on demand. After this lecture, you'll be able to use keepers to control exactly when a random_* resource regenerates, explain why the change is always a replace not an update, and apply this pattern to deliberate credential and name rotation.
This hands-on lab graduates from hardcoded values to input variables, dissecting the variable block's name, type, description, and default fields and referencing a variable with var.<name> — for example wiring var.pet_length into a resource. It also shows that with no default present, Terraform stops and prompts for the value at the command line. After this lecture, you'll be able to declare a variable block with all four fields, reference it with var.<name>, and predict what Terraform does when a required variable has no default.
This hands-on lab graduates from hardcoded values to input variables, dissecting the variable block's name, type, description, and default fields and referencing a variable with var.<name> — for example wiring var.pet_length into a resource. It also shows that with no default present, Terraform stops and prompts for the value at the command line. After this lecture, you'll be able to declare a variable block with all four fields, reference it with var.<name>, and predict what Terraform does when a required variable has no default.
This hands-on lab exercises all five core variable types — string, number, bool, list, and map — in a real main.tf, running a full apply and then deliberately breaking one type declaration to read the validation error Terraform throws before a plan reaches any infrastructure. After this lecture, you'll be able to choose the right primitive or collection type for a variable, connect typed variables to resources, and rely on Terraform's early type-checking to catch mismatches before they cause silent, hard-to-debug mistakes.
This hands-on lab exercises all five core variable types — string, number, bool, list, and map — in a real main.tf, running a full apply and then deliberately breaking one type declaration to read the validation error Terraform throws before a plan reaches any infrastructure. After this lecture, you'll be able to choose the right primitive or collection type for a variable, connect typed variables to resources, and rely on Terraform's early type-checking to catch mismatches before they cause silent, hard-to-debug mistakes.
This hands-on lab makes variables production-ready by adding a description for helpful interactive prompts, a default to make a variable optional, and a validation block — using the contains() allow-list pattern — that rejects bad input with a custom error message before any resource runs. It uses the random provider so it runs anywhere. After this lecture, you'll be able to write self-documenting variables with defaults and validation blocks, apply the contains() allow-list pattern, and explain the fail-fast timing that catches bad input before it reaches a resource.
This hands-on lab makes variables production-ready by adding a description for helpful interactive prompts, a default to make a variable optional, and a validation block — using the contains() allow-list pattern — that rejects bad input with a custom error message before any resource runs. It uses the random provider so it runs anywhere. After this lecture, you'll be able to write self-documenting variables with defaults and validation blocks, apply the contains() allow-list pattern, and explain the fail-fast timing that catches bad input before it reaches a resource.
This hands-on lab resolves which value wins when CLI -var flags, .tfvars files, and TF_VAR_* environment variables all compete, demonstrating the fixed precedence stack live in the terminal — an env-var value overridden by .tfvars, then overridden by a -var flag — plus the auto-load rules for .tfvars files. After this lecture, you'll be able to rank Terraform's variable sources from lowest to highest precedence, predict which value a plan will use, and debug an unexpected variable value by tracing it to its source.
This hands-on lab resolves which value wins when CLI -var flags, .tfvars files, and TF_VAR_* environment variables all compete, demonstrating the fixed precedence stack live in the terminal — an env-var value overridden by .tfvars, then overridden by a -var flag — plus the auto-load rules for .tfvars files. After this lecture, you'll be able to rank Terraform's variable sources from lowest to highest precedence, predict which value a plan will use, and debug an unexpected variable value by tracing it to its source.
This hands-on lab makes the Day 3 random resources reusable by replacing hardcoded literals with input variables: a number driving random_password length, a bool toggling special characters, and an object variable setting random_integer's min and max bounds — plus a validation block rejecting passwords shorter than twelve characters before the provider is ever evaluated. After this lecture, you'll be able to drive random provider resources entirely from typed variables, guard them with validation that runs before provider evaluation, and reuse this parameterization pattern in later module-extraction work.
This hands-on lab makes the Day 3 random resources reusable by replacing hardcoded literals with input variables: a number driving random_password length, a bool toggling special characters, and an object variable setting random_integer's min and max bounds — plus a validation block rejecting passwords shorter than twelve characters before the provider is ever evaluated. After this lecture, you'll be able to drive random provider resources entirely from typed variables, guard them with validation that runs before provider evaluation, and reuse this parameterization pattern in later module-extraction work.
This hands-on lab covers output blocks — the intended way to surface resource attribute values after an apply — including how Terraform prints them automatically, how sensitive = true redacts secrets from the default view, and how the terraform output command retrieves any value, including hidden ones, on demand. After this lecture, you'll be able to declare output blocks, control secret redaction with sensitive = true, and retrieve specific outputs anytime with the terraform output command for handoff to people or other tools.
This hands-on lab covers output blocks — the intended way to surface resource attribute values after an apply — including how Terraform prints them automatically, how sensitive = true redacts secrets from the default view, and how the terraform output command retrieves any value, including hidden ones, on demand. After this lecture, you'll be able to declare output blocks, control secret redaction with sensitive = true, and retrieve specific outputs anytime with the terraform output command for handoff to people or other tools.
This hands-on lab uses a locals block to compute a named value once and reference it everywhere with local.<name>, eliminating the drift that comes from repeating the same string concatenation or tag map in multiple places. It contrasts locals with variables — locals are purely internal and can't be set from outside — and produces a dynamically named file on apply. After this lecture, you'll be able to define and reference locals, explain how they differ from input variables, and use them to keep naming conventions and repeated expressions DRY.
This hands-on lab uses a locals block to compute a named value once and reference it everywhere with local.<name>, eliminating the drift that comes from repeating the same string concatenation or tag map in multiple places. It contrasts locals with variables — locals are purely internal and can't be set from outside — and produces a dynamically named file on apply. After this lecture, you'll be able to define and reference locals, explain how they differ from input variables, and use them to keep naming conventions and repeated expressions DRY.
This hands-on lab uses six of Terraform's most important built-in functions — format, join, split, merge, lookup, and max — inside a locals block, writing every computed result into a JSON file via jsonencode so you see the exact output each produces. After this lecture, you'll be able to shape strings with format, convert between lists and delimited text with join and split, combine and safely read maps with merge and lookup, guard a number with max, and know to reach for the Registry's Functions reference for anything else.
This hands-on lab uses six of Terraform's most important built-in functions — format, join, split, merge, lookup, and max — inside a locals block, writing every computed result into a JSON file via jsonencode so you see the exact output each produces. After this lecture, you'll be able to shape strings with format, convert between lists and delimited text with join and split, combine and safely read maps with merge and lookup, guard a number with max, and know to reach for the Registry's Functions reference for anything else.
This hands-on lab writes Terraform's two looping meta-arguments side by side against the local and random providers, applies them, inspects the state addresses each produces, and deliberately breaks each to feel the trade-off: removing a middle item from a count list can cascade unwanted destroys, while dropping a for_each key touches only that one instance. After this lecture, you'll be able to loop resources with both count and for_each, read the different state addresses they generate, and choose index-based count versus key-based for_each based on whether instances need a stable identity.
This hands-on lab writes Terraform's two looping meta-arguments side by side against the local and random providers, applies them, inspects the state addresses each produces, and deliberately breaks each to feel the trade-off: removing a middle item from a count list can cascade unwanted destroys, while dropping a for_each key touches only that one instance. After this lecture, you'll be able to loop resources with both count and for_each, read the different state addresses they generate, and choose index-based count versus key-based for_each based on whether instances need a stable identity.
This hands-on Day 4 capstone brings together providers, typed and validated variables, locals, the format function, for_each over a set, the random provider's generators, and map-shaped outputs into one project with zero hardcoded values — demonstrating that adding a fourth team creates only one new set of resources while the others stay untouched. After this lecture, you'll be able to assemble a fully parameterized multi-resource project driven entirely by variables, prove for_each's stability guarantee, and carry the exact init-plan-apply muscle memory forward to real cloud providers.
This hands-on Day 4 capstone brings together providers, typed and validated variables, locals, the format function, for_each over a set, the random provider's generators, and map-shaped outputs into one project with zero hardcoded values — demonstrating that adding a fourth team creates only one new set of resources while the others stay untouched. After this lecture, you'll be able to assemble a fully parameterized multi-resource project driven entirely by variables, prove for_each's stability guarantee, and carry the exact init-plan-apply muscle memory forward to real cloud providers.
This hands-on lab introduces the terraform console as a safe REPL for evaluating expressions against your real configuration and state — testing numeric, string, and collection functions, resolving a local and a variable, reading a live resource attribute straight from state, and running a for-expression, all without editing a resource. After this lecture, you'll be able to launch the Terraform console, evaluate built-in functions and expressions interactively, inspect locals, variables, and live state values, and use it to build confidence in HCL before baking it into resources.
This hands-on lab introduces the terraform console as a safe REPL for evaluating expressions against your real configuration and state — testing numeric, string, and collection functions, resolving a local and a variable, reading a live resource attribute straight from state, and running a for-expression, all without editing a resource. After this lecture, you'll be able to launch the Terraform console, evaluate built-in functions and expressions interactively, inspect locals, variables, and live state values, and use it to build confidence in HCL before baking it into resources.
This hands-on lab lays the foundation for every Azure lab in the course: you configure the azurerm provider, pin its version in the terraform block, add the mandatory features {} block, and confirm that az cli authentication reaches a real subscription before any resource is declared. You run terraform init to pull the provider plugin and terraform plan to prove a clean, zero-resource handshake with your subscription. After this lecture, you'll be able to stand up an authenticated azurerm provider from scratch and verify it connects to a live Azure subscription — the clean starting point every later Azure lab depends on.
This hands-on lab lays the foundation for every Azure lab in the course: you configure the azurerm provider, pin its version in the terraform block, add the mandatory features {} block, and confirm that az cli authentication reaches a real subscription before any resource is declared. You run terraform init to pull the provider plugin and terraform plan to prove a clean, zero-resource handshake with your subscription. After this lecture, you'll be able to stand up an authenticated azurerm provider from scratch and verify it connects to a live Azure subscription — the clean starting point every later Azure lab depends on.
This lesson compares the two ways to authenticate the Azure provider: interactive az login for local human work versus a Service Principal with a client secret for CI pipelines where there's no browser. You'll see how to create a Service Principal with az ad sp create-for-rbac at the right scope, and how the four ARM_* environment variables slot into the exact same provider block with zero code changes. After this lecture, you'll be able to choose the correct Azure auth method for a given context and wire a Service Principal into an automation pipeline confidently.
In this hands-on lab you meet Azure's mandatory organizing construct — the Resource Group — and learn why every Azure resource must belong to one. You write an azurerm_resource_group block into main.tf, run a full plan and apply against a real subscription, then verify the result independently with az group show. After this lecture, you'll be able to declare and provision a resource group, reference it from downstream resources by name and location, and confirm it outside Terraform — the trust-but-verify habit you'll carry through every Azure lab that follows.
In this hands-on lab you meet Azure's mandatory organizing construct — the Resource Group — and learn why every Azure resource must belong to one. You write an azurerm_resource_group block into main.tf, run a full plan and apply against a real subscription, then verify the result independently with az group show. After this lecture, you'll be able to declare and provision a resource group, reference it from downstream resources by name and location, and confirm it outside Terraform — the trust-but-verify habit you'll carry through every Azure lab that follows.
This hands-on lab provisions your first real, billable Azure compute: an azurerm_linux_virtual_machine sitting on the full network stack it depends on — a virtual network, subnet, network interface, and public IP. You write all five resource blocks into main.tf, run a plan to confirm the implicit dependency chain, then apply and verify the VM is reachable over SSH. After this lecture, you'll be able to build a working cloud VM with its complete network foundation and understand how Terraform's dependency model scales from a single file to real infrastructure — and you'll know to run terraform destroy, because this VM bills by the minute.
This hands-on lab provisions your first real, billable Azure compute: an azurerm_linux_virtual_machine sitting on the full network stack it depends on — a virtual network, subnet, network interface, and public IP. You write all five resource blocks into main.tf, run a plan to confirm the implicit dependency chain, then apply and verify the VM is reachable over SSH. After this lecture, you'll be able to build a working cloud VM with its complete network foundation and understand how Terraform's dependency model scales from a single file to real infrastructure — and you'll know to run terraform destroy, because this VM bills by the minute.
This hands-on lab takes the hardcoded VM from the previous lab and parameterizes it properly, applying Day 4's variable and output mechanics to real, billable Azure infrastructure for the first time. You add a validation block that rejects a bad Azure SKU before it ever reaches the Azure API, and wire an output that prints a ready-to-run SSH command the moment apply finishes. After this lecture, you'll be able to parameterize VM size and region, guard inputs with validation, surface live attributes as outputs, and read a plan to tell an in-place update apart from a forced replacement.
This hands-on lab takes the hardcoded VM from the previous lab and parameterizes it properly, applying Day 4's variable and output mechanics to real, billable Azure infrastructure for the first time. You add a validation block that rejects a bad Azure SKU before it ever reaches the Azure API, and wire an output that prints a ready-to-run SSH command the moment apply finishes. After this lecture, you'll be able to parameterize VM size and region, guard inputs with validation, surface live attributes as outputs, and read a plan to tell an in-place update apart from a forced replacement.
This hands-on lab provisions an azurerm_storage_account and a private azurerm_storage_container entirely through Terraform. Because every storage account name must be globally unique across Azure, you bring in the random provider to generate a collision-proof suffix, then harden the account by setting allow_nested_items_to_be_public to false and locking the container's access type to private. After this lecture, you'll be able to provision a globally unique, privately secured storage account and blob container, and verify them with the Azure CLI — two resources that reappear in the Day 5 capstone and in Day 8's remote state backend.
This hands-on lab provisions an azurerm_storage_account and a private azurerm_storage_container entirely through Terraform. Because every storage account name must be globally unique across Azure, you bring in the random provider to generate a collision-proof suffix, then harden the account by setting allow_nested_items_to_be_public to false and locking the container's access type to private. After this lecture, you'll be able to provision a globally unique, privately secured storage account and blob container, and verify them with the Azure CLI — two resources that reappear in the Day 5 capstone and in Day 8's remote state backend.
This hands-on lab closes the SSH gap left open by the earlier VM lab by designing a custom VNet topology and attaching a Network Security Group to a subnet. You add a priority-100 AllowSSH inbound rule field by field, wire the NSG to the subnet with an association resource, and learn why a wildcard source prefix is fine for a short-lived lab but never for production. After this lecture, you'll be able to build a custom Azure network, control traffic with NSG rules, and finally get your VM answering on port 22 — while knowing exactly how to tighten those rules before sharing an environment.
This hands-on lab closes the SSH gap left open by the earlier VM lab by designing a custom VNet topology and attaching a Network Security Group to a subnet. You add a priority-100 AllowSSH inbound rule field by field, wire the NSG to the subnet with an association resource, and learn why a wildcard source prefix is fine for a short-lived lab but never for production. After this lecture, you'll be able to build a custom Azure network, control traffic with NSG rules, and finally get your VM answering on port 22 — while knowing exactly how to tighten those rules before sharing an environment.
This hands-on lab extends a running Azure VM with two capabilities: extra block storage via azurerm_managed_disk and its disk attachment resource, and a post-boot bootstrap through azurerm_virtual_machine_extension with a CustomScript publisher that installs nginx at boot. You'll use jsonencode to build the extension settings, reusing a Day 4 pattern. After this lecture, you'll be able to attach a managed data disk to a live VM and trigger a CustomScript extension entirely in HCL — two shapes you'll reach for constantly on Azure.
This hands-on lab extends a running Azure VM with two capabilities: extra block storage via azurerm_managed_disk and its disk attachment resource, and a post-boot bootstrap through azurerm_virtual_machine_extension with a CustomScript publisher that installs nginx at boot. You'll use jsonencode to build the extension settings, reusing a Day 4 pattern. After this lecture, you'll be able to attach a managed data disk to a live VM and trigger a CustomScript extension entirely in HCL — two shapes you'll reach for constantly on Azure.
This hands-on lab takes the flat multi-resource configuration built across the earlier Azure labs and extracts the VM + NIC + NSG pattern into a parameterized child module of three files — main.tf, variables.tf, and outputs.tf. You call the module from a root configuration and watch the same infrastructure surface under the module.web_vm.* address in state and plan output. After this lecture, you'll be able to turn a working flat configuration into a reusable module and spin up additional identical VMs with a single module block instead of copy-pasting HCL — a preview of the Day 10 module deep dive.
This hands-on lab takes the flat multi-resource configuration built across the earlier Azure labs and extracts the VM + NIC + NSG pattern into a parameterized child module of three files — main.tf, variables.tf, and outputs.tf. You call the module from a root configuration and watch the same infrastructure surface under the module.web_vm.* address in state and plan output. After this lecture, you'll be able to turn a working flat configuration into a reusable module and spin up additional identical VMs with a single module block instead of copy-pasting HCL — a preview of the Day 10 module deep dive.
This is the Day 5 capstone, tying together everything from the week: a reusable VNet and VM module, a Storage Account backend, and a VM extension composed into one coherent architecture. You walk the target architecture, see how every piece wires together in a five-step POC workflow, and drive home the destroy-and-verify close-out with an independent Azure CLI check. After this lecture, you'll be able to reason about how modules, storage, networking, and extensions compose into a single system and apply the terraform destroy plus CLI-verification discipline that closes every real-cloud lab from here on.
This lesson sets up the AWS provider the right way: a required_providers block with a locked version, a minimal provider "aws" block pointing at us-east-1, and credential resolution handed entirely to the AWS credential chain so nothing is hardcoded in HCL. You'll run terraform init to download the plugin, terraform plan for a clean zero-resource result, and aws sts get-caller-identity to confirm your identity first. After this lecture, you'll be able to configure and verify an authenticated AWS provider and troubleshoot common auth errors — the foundation reused through every remaining Day 6 lab.
Configure the AWS provider in Terraform, set up authentication using static credentials, environment variables, and shared config profiles, and verify connectivity to AWS.
This lesson walks the full spectrum of AWS credential methods — hardcoded static keys (which you should never use), environment variables, named CLI profiles, and IAM roles assumed at runtime — and connects each to its right context. You'll wire up a real named profile in ~/.aws/credentials and see how an IAM role via instance metadata or OIDC federation maps directly to the Azure Service Principal pattern from Day 5. After this lecture, you'll be able to pick the correct AWS credential method for local development versus automation and keep secrets out of your code and shell.
Work hands-on with all AWS authentication methods — static credentials, environment variables, and shared config profile — and understand when to use each.
This lesson provisions the course's first billable AWS resource — a live EC2 instance — using aws_instance, an aws_security_group, and a dynamic data "aws_ami" lookup that finds the freshest Ubuntu image. You'll see how AWS's default VPC and automatic public IP mean far fewer building blocks than Day 5's Azure VM. After this lecture, you'll be able to launch a tagged, reachable EC2 instance from a single apply, use an AMI data source for dynamic lookups, and articulate the structural differences between AWS and Azure compute.
Provision EC2 instances on AWS using Terraform, including AMI selection, instance type, key pairs, and security groups — all as code.
This lesson proves that Day 4's variable and output mechanics are genuinely provider-agnostic by pointing them, unchanged, at a real EC2 deployment. You add a regex-validated variable for instance type, wire outputs for public DNS and a ready-to-paste SSH command, then deliberately break the guardrail to watch it reject a non-t3 type. After this lecture, you'll be able to parameterize and validate an EC2 deployment and surface useful outputs using the same HCL patterns that carry across every provider — work that feeds the AWS module extraction later in the day.
Parameterize your EC2 configuration using input variables and expose instance details via output blocks for downstream use.
This lesson makes the default VPC's implicit networking explicit, answering why the earlier EC2 instance got a public IP and reached the internet with zero networking resources declared. You'll learn the default VPC's shape — its public subnets, internet gateway, and route table — and extend a security group to allow both SSH and HTTP traffic. After this lecture, you'll be able to explain exactly what AWS pre-wires for every account and why production workloads move to a custom VPC where you control each decision — the very thing the next VPC lab builds.
This lesson declares an S3 bucket in Terraform using four tightly linked resources — the bucket, versioning, and public-access blocking — all as code. You'll see why bucket names must be globally unique across all of AWS and how the random provider solves it, and how AWS decomposes into several dedicated blocks what Azure bundles into one resource. After this lecture, you'll be able to declare a versioned, public-access-locked S3 bucket in HCL and recognize AWS's resource-decomposition philosophy — a bucket that later becomes the Terraform state backend on Day 8.
Create S3 buckets and attach bucket policies as Terraform code, enabling versioning, access control, and server-side encryption.
This lesson builds a production-appropriate custom VPC from scratch — a Virtual Private Cloud with its own public subnet, internet gateway, and explicitly wired route table and association — replacing the default VPC shortcut flagged earlier. You'll see the full dependency chain across the five resources AWS requires and how map_public_ip_on_launch and the route table route make the subnet public. After this lecture, you'll be able to stand up a custom AWS network with explicit, auditable wiring for every hop — the shared foundation for the Day 6 capstone.
Build a complete AWS VPC with public subnets, internet gateway, and route tables entirely in Terraform.
This lesson writes AWS Identity and Access Management as code: an aws_iam_role, a least-privilege S3 read-only aws_iam_policy, and the aws_iam_role_policy_attachment that joins them. You'll use the aws_iam_policy_document data source to generate correctly-formatted policy JSON from readable HCL, then verify the real generated JSON to prove least-privilege is actually in effect. After this lecture, you'll be able to build the role-policy-attachment pattern as reviewable, repeatable code — the same composable building block Vault's AWS secrets engine uses later for dynamic credentials.
Define IAM roles, policies, and instance profile attachments as Terraform code following the principle of least privilege.
This lesson extracts an EC2 instance and its security group into a proper reusable child module — main.tf, variables.tf, and outputs.tf — wired to a root configuration that calls it, with resources surfacing under the module.web_instance address. Every mechanic is identical to the Day 5 Azure module; only the provider changed. After this lecture, you'll be able to package AWS compute into a reusable module and explain, from having proven it yourself, why module extraction is provider-agnostic.
Build a reusable aws-ec2-instance Terraform module with input variables, outputs, and security group management for multi-environment use.
This is the Day 6 capstone, assembling every AWS skill from the week into one coherent system: a custom VPC, an EC2 web tier from the module lab, an S3 bucket, and IAM wired via an instance profile so the instance can read from the bucket, bootstrapped with user_data at first boot. You then run a full terraform destroy and confirm with the AWS CLI that nothing billable remains. After this lecture, you'll be able to compose VPC, compute, storage, and IAM into a running multi-tier application and apply the build-verify-destroy-confirm close-out that every real-cloud capstone demands.
This lesson configures the GCP google provider — the third and final stop on the three-cloud provider-auth arc after Azure and AWS — with project, region, and zone plus Application Default Credentials authenticated through the gcloud CLI. No resources are declared; you prove the setup with a clean plan. After this lecture, you'll be able to wire up and verify the google provider and articulate how the same crawl pattern — required_providers, a minimal provider block, and CLI-based auth — holds true across all three major clouds.
This lesson maps GCP authentication end to end: a downloaded service account key file (a long-lived static secret) versus Application Default Credentials that resolve from the environment automatically. You'll see how this mirrors the Azure Service Principal and AWS static-key decisions and where the key file fits in the three-cloud credential-spectrum table. After this lecture, you'll be able to choose between a service account key and ADC, wire either into the provider block, and explain why ADC or Workload Identity Federation is preferable — and why a key must never be committed to version control.
This lesson provisions a Google Compute Engine VM with google_compute_instance paired with a google_compute_firewall rule for SSH, completing the three-cloud compute comparison. The focus is GCP's distinctive idiom for requesting a public IP — the empty access_config {} block — set against Azure's dedicated public IP resource and AWS's boolean flag. After this lecture, you'll be able to provision a reachable GCE instance in Terraform and explain three completely different cloud API designs for the same outcome: a public IP address.
This lesson completes the three-cloud proof that variables and outputs are provider-agnostic by applying the same mechanics to Google Compute Engine. You add a machine-type variable with a cost-guardrail validation rule and surface two outputs — the GCP self_link and a ready-to-paste ssh_command. After this lecture, you'll be able to parameterize and validate a GCE deployment and understand how a self_link relates to an Azure resource ID or an AWS ARN — the same idea in a different concrete format.
This lesson demystifies GCP's implicit default network — the convenience that made your GCE instance reachable — by examining every auto-created firewall rule that ships with a new GCP project and adding an HTTP rule in Terraform. It's the direct GCP parallel to Day 6's AWS default VPC lesson. After this lecture, you'll be able to explain what GCP's default network provides, recognize its overly permissive rules, and know why production replaces it with something explicit — the same takeaway proven now on all three clouds.
This lesson provisions a Google Cloud Storage bucket with google_storage_bucket, setting location, storage class, and versioning while locking down public access — the final chapter of the three-cloud storage-primitive comparison. You'll see how GCP's single public_access_prevention argument compares to Azure's one argument and AWS's four separate booleans, all enforcing the same security control. After this lecture, you'll be able to provision a versioned, public-access-hardened GCS bucket and compare how three clouds express identical storage security through very different API designs.
This lesson builds GCP's custom networking from scratch with google_compute_network and google_compute_subnetwork, highlighting GCP's global-network architecture where networks are global and subnetworks regional — with no internet gateway resource and no route table wiring to manage. After this lecture, you'll be able to stand up a custom GCP VPC network and subnetwork in Terraform and explain how GCP's model differs structurally from both Azure's VNet and AWS's VPC — the shared foundation carried to the Day 7 capstone.
This lesson implements GCP's IAM binding model: you create a service account as a first-class resource and bind it to a storage bucket with a predefined role using google_storage_bucket_iam_member — a member, a role, and a resource scope in one block, structurally closer to Azure's role assignment than to AWS's policy document. After this lecture, you'll be able to write least-privilege access controls on GCP and, having now built each one by hand, compare the IAM models of all three major clouds — the comparison the capstone draws together.
This is the three-cloud capstone: one architectural intent — the same web application topology — provisioned simultaneously on AWS, Azure, and GCP through three parallel, structurally identical Terraform modules, each with its own independent state and its own bootstrap mechanism. You verify real running nginx pages across all three and complete an earned comparison table. After this lecture, you'll be able to deploy identical infrastructure across all three major clouds from parallel modules and reason about the cross-cloud differences that every note from the past twenty labs pointed toward.
Configure the Google provider with required_providers and a minimal provider block, authenticating via Application Default Credentials from gcloud, and confirm with a no-change Terraform plan.
This lesson takes an honest look at the local terraform.tfstate file you've used since Day 2 and names the three ways it breaks the moment a second engineer appears: no sharing, no locking, and no durability. You'll see the exact output that proves each failure mode and why a remote backend is the only real fix. After this lecture, you'll be able to explain when local state is acceptable and articulate precisely why a remote backend becomes mandatory for team work — the motivation for every backend lab that follows.
This hands-on lab wires a real Azure Storage Account as Terraform's remote backend so every plan and apply reads and writes state from Azure Blob Storage. You bootstrap the storage infrastructure with the az CLI (solving the chicken-and-egg problem), write the azurerm backend block in HCL, and run terraform init to migrate existing state into the cloud. After this lecture, you'll be able to configure a production-grade Azure remote backend, migrate local state into Blob Storage, and troubleshoot common backend errors — with Azure as the authoritative record and the local file just a thin cache.
This hands-on lab wires a real Azure Storage Account as Terraform's remote backend so every plan and apply reads and writes state from Azure Blob Storage. You bootstrap the storage infrastructure with the az CLI (solving the chicken-and-egg problem), write the azurerm backend block in HCL, and run terraform init to migrate existing state into the cloud. After this lecture, you'll be able to configure a production-grade Azure remote backend, migrate local state into Blob Storage, and troubleshoot common backend errors — with Azure as the authoritative record and the local file just a thin cache.
This lesson configures Terraform's S3 backend with DynamoDB-based state locking — the AWS counterpart to the Azure Storage backend. You bootstrap the S3 bucket and DynamoDB table outside the project, drop in the backend block, migrate local state to S3, and watch a genuine lock conflict fire between two concurrent runs. After this lecture, you'll be able to stand up an S3 + DynamoDB remote backend and understand how locking protects every state write — the second of three cloud backends that build your remote-state muscle memory.
Configure an S3 backend for Terraform state storage and enable DynamoDB-based state locking to support safe team collaboration.
This lesson configures Google Cloud Storage as Terraform's remote backend — the simplest of the three, with native locking and native versioning and zero companion resources, just a bucket and a prefix. You bootstrap the bucket, write the backend "gcs" block, and migrate existing state. After this lecture, you'll be able to configure a GCS remote backend and, having now covered Azure, AWS, and GCP, complete the full three-cloud backend arc with real hands-on experience behind the comparison.
This lesson compares the four most common remote backends — azurerm, S3, GCS, and Terraform Cloud — across locking, encryption at rest, and state versioning, with no cloud credentials required. You'll build the vocabulary and judgment to weigh these as architectural decisions with real operational consequences. After this lecture, you'll be able to choose the right backend for a real project, defend that choice to a team, and read other teams' backend configurations with confidence.
This hands-on lab uses terraform workspace new, select, and list to run one shared configuration against multiple isolated environments, each with its own independent state file. You'll spin up two completely separate resource groups from a single main.tf and use the built-in terraform.workspace reference to vary resource names per environment, each destroyable on its own. After this lecture, you'll be able to isolate environments with workspaces and judge when they fit — structurally identical environments — versus when a directory-per-environment layout is the better long-term choice.
This hands-on lab uses terraform workspace new, select, and list to run one shared configuration against multiple isolated environments, each with its own independent state file. You'll spin up two completely separate resource groups from a single main.tf and use the built-in terraform.workspace reference to vary resource names per environment, each destroyable on its own. After this lecture, you'll be able to isolate environments with workspaces and judge when they fit — structurally identical environments — versus when a directory-per-environment layout is the better long-term choice.
This lesson covers the four core state subcommands — the state-surgery toolkit — with no cloud credentials needed: list and show for safe read-only inspection, mv for renaming resource addresses during a refactor, and rm for dropping a resource from Terraform's bookkeeping while leaving the real infrastructure untouched. After this lecture, you'll be able to inspect and safely restructure Terraform state without touching real resources — the foundation of responsible state management on any team.
This lesson explains state drift — what it is, how it happens, and why leaving it unaddressed is more dangerous than it looks — by walking a real Azure resource group, a manual tag change made outside Terraform, and watching terraform plan catch the mismatch before an apply silently discards that manual work. After this lecture, you'll be able to recognize and detect drift and apply the golden rule: never manage a Terraform-managed resource through any other tool, console, or script — put the change in the .tf code and apply it through Terraform.
This hands-on lab brings infrastructure created outside Terraform under management without destroying it. You deliberately create an Azure resource group with the az CLI, then walk both required steps of terraform import: pulling the resource into state, then writing the matching HCL block so terraform plan reports No Changes. After this lecture, you'll be able to adopt any pre-existing resource into Terraform safely with no downtime or recreation — and know why the plan-shows-no-changes confirmation, the step most people skip, is the only signal that the import is truly complete.
This hands-on lab brings infrastructure created outside Terraform under management without destroying it. You deliberately create an Azure resource group with the az CLI, then walk both required steps of terraform import: pulling the resource into state, then writing the matching HCL block so terraform plan reports No Changes. After this lecture, you'll be able to adopt any pre-existing resource into Terraform safely with no downtime or recreation — and know why the plan-shows-no-changes confirmation, the step most people skip, is the only signal that the import is truly complete.
This hands-on Day 8 capstone runs a full incident-response cycle: a storage account has been deleted outside Terraform and a teammate's apply is blocked. You apply cleanly, simulate the deletion, read the plan's + versus ~ carefully, cross-check independently with az cli, then apply deliberately because you understand exactly what Terraform will do. After this lecture, you'll be able to diagnose a drift incident before acting — distinguishing when to apply from when to pause — the diagnose-before-acting habit that separates professional Terraform work from panic-driven reapplies.
This hands-on Day 8 capstone runs a full incident-response cycle: a storage account has been deleted outside Terraform and a teammate's apply is blocked. You apply cleanly, simulate the deletion, read the plan's + versus ~ carefully, cross-check independently with az cli, then apply deliberately because you understand exactly what Terraform will do. After this lecture, you'll be able to diagnose a drift incident before acting — distinguishing when to apply from when to pause — the diagnose-before-acting habit that separates professional Terraform work from panic-driven reapplies.
This lesson covers two asymmetric commands: terraform state pull, a safe read-only path to the raw state JSON for scripting and compliance auditing, and terraform state push, the dangerous escape hatch that overwrites remote state wholesale. You'll inspect the raw JSON and see why nearly every real need is met more safely by state mv, state rm, or import. After this lecture, you'll be able to read raw state safely and know why state push is a last resort, reaching for the narrow tools first.
This Day 8 capstone lesson makes team collaboration concrete with saved plan files: terraform plan -out snapshots an exact plan, terraform show lets a reviewer inspect it, and terraform apply on that file guarantees zero drift between what was reviewed and what gets executed — and Terraform refuses a stale plan rather than surprise anyone. After this lecture, you'll be able to run the saved-plan review workflow that underpins responsible team processes and the CICD pipelines and policy gates that rely on it in production.
In this hands-on lab you configure Google Cloud Storage as Terraform's remote backend. You'll create a GCS bucket with versioning and uniform access settings, write the backend "gcs" block pointing to the bucket and prefix, then run terraform init to migrate local state to GCS. You'll verify the state file landed in the bucket via gsutil, confirm that native GCS locking is active, and complete the three-cloud backend arc — having now implemented Azure Blob, S3+DynamoDB, and GCS backends in sequence with real hands-on experience behind the comparison.
This hands-on lab declares a managed Kubernetes control plane entirely in HCL, using an azurerm_kubernetes_cluster block with a default_node_pool and a system-assigned identity, then runs a full plan-apply-verify cycle (allow five to ten minutes for the real AKS apply). The cluster you stand up here is the shared foundation every remaining Day 9 lab builds on. After this lecture, you'll be able to provision a real AKS cluster with worker nodes and a modern managed identity from Terraform, and tear it all down cleanly with a single terraform destroy when the day is done.
This hands-on lab declares a managed Kubernetes control plane entirely in HCL, using an azurerm_kubernetes_cluster block with a default_node_pool and a system-assigned identity, then runs a full plan-apply-verify cycle (allow five to ten minutes for the real AKS apply). The cluster you stand up here is the shared foundation every remaining Day 9 lab builds on. After this lecture, you'll be able to provision a real AKS cluster with worker nodes and a modern managed identity from Terraform, and tear it all down cleanly with a single terraform destroy when the day is done.
Here you'll see EKS provisioned with Terraform end to end — hand-building the IAM trust relationship, attaching a managed policy, declaring the control plane with its VPC requirements, and manually assembling a kubeconfig from the cluster endpoint, certificate authority data, and an auth token. The lab makes the structural contrast with AKS's one-line system-assigned identity concrete. After completing this lecture, you'll be able to explain why EKS demands this extra IAM and kubeconfig work, and reproduce the full AWS managed-Kubernetes setup yourself — while remembering that EKS bills by the hour and must be destroyed when you're done.
Provision a production-ready EKS cluster on AWS using Terraform, generate the kubeconfig, and verify cluster access with kubectl.
This lesson provisions a Google Kubernetes Engine cluster with a separately-managed node pool, completing managed-Kubernetes coverage across AKS, EKS, and GKE. You'll learn why GKE's recommended pattern discards the default node pool in favour of one you fully control, how its identity model compares to the other two clouds, and how to assemble a kubeconfig from scratch with yamlencode() since GKE exposes no built-in kube_config attribute. After this lecture, you'll be able to stand up a GKE cluster with a custom node pool and hand-build its kubeconfig, and articulate the complexity trade-offs between all three providers.
In this hands-on lab you'll surface an AKS cluster's API endpoint, CA certificate, and raw kubeconfig as Terraform outputs, then write a working kubeconfig to disk with a local_file resource using locked-down permissions — no az CLI credential fetch required. You'll also handle sensitive outputs safely so credentials aren't exposed. After this lecture, you'll be able to extract cluster connection details directly from Terraform state and produce a kubeconfig that lets kubectl get nodes succeed immediately.
In this hands-on lab you'll surface an AKS cluster's API endpoint, CA certificate, and raw kubeconfig as Terraform outputs, then write a working kubeconfig to disk with a local_file resource using locked-down permissions — no az CLI credential fetch required. You'll also handle sensitive outputs safely so credentials aren't exposed. After this lecture, you'll be able to extract cluster connection details directly from Terraform state and produce a kubeconfig that lets kubectl get nodes succeed immediately.
This lab adds a second, purpose-specific node pool to an AKS cluster with the azurerm_kubernetes_cluster_node_pool resource, then verifies it with kubectl. Along the way you'll draw the boundary between what the managed service owns — control plane HA, etcd, upgrades — and what remains yours: pool sizing, VM selection, and version skew, including what System versus User mode means. After this lecture, you'll be able to extend an AKS cluster with additional node pools in Terraform and reason clearly about managed-Kubernetes design choices.
This lab adds a second, purpose-specific node pool to an AKS cluster with the azurerm_kubernetes_cluster_node_pool resource, then verifies it with kubectl. Along the way you'll draw the boundary between what the managed service owns — control plane HA, etcd, upgrades — and what remains yours: pool sizing, VM selection, and version skew, including what System versus User mode means. After this lecture, you'll be able to extend an AKS cluster with additional node pools in Terraform and reason clearly about managed-Kubernetes design choices.
Before Terraform takes over, this hands-on lab establishes the manual baseline: you apply a raw Deployment and a LoadBalancer Service against AKS with kubectl apply, watch Azure provision a real public IP, confirm the demo page is reachable, and clean up with kubectl delete. It's the deliberate reference point that a later lab reproduces as Terraform-managed resources. After this lecture, you'll be able to deploy and expose a Kubernetes workload by hand with kubectl and understand exactly how it talks to AKS — so you'll recognize precisely what changes when Terraform automates it.
Before Terraform takes over, this hands-on lab establishes the manual baseline: you apply a raw Deployment and a LoadBalancer Service against AKS with kubectl apply, watch Azure provision a real public IP, confirm the demo page is reachable, and clean up with kubectl delete. It's the deliberate reference point that a later lab reproduces as Terraform-managed resources. After this lecture, you'll be able to deploy and expose a Kubernetes workload by hand with kubectl and understand exactly how it talks to AKS — so you'll recognize precisely what changes when Terraform automates it.
This lab removes the manual kubeconfig step by wiring the kubernetes provider directly to the AKS cluster's own attributes — read here through a data source since the cluster was provisioned earlier in Day 9 — so a single terraform apply can reach the cluster and deploy onto it. You'll see why base64decode() is needed and the three ways to obtain the kube_config: direct resource reference, data source, or remote state. After this lecture, you'll be able to configure the Kubernetes provider from Terraform-managed cluster credentials and pick the right credential-sourcing variant for your situation.
This lab removes the manual kubeconfig step by wiring the kubernetes provider directly to the AKS cluster's own attributes — read here through a data source since the cluster was provisioned earlier in Day 9 — so a single terraform apply can reach the cluster and deploy onto it. You'll see why base64decode() is needed and the three ways to obtain the kube_config: direct resource reference, data source, or remote state. After this lecture, you'll be able to configure the Kubernetes provider from Terraform-managed cluster credentials and pick the right credential-sourcing variant for your situation.
Here you'll rebuild the manual workload entirely in HCL as kubernetes_config_map, kubernetes_deployment, and kubernetes_service resources, wire config into the container with env_from and config_map_ref, surface the LoadBalancer IP as an output, and confirm idempotency with a follow-up plan that reports no changes. After this lecture, you'll be able to manage Kubernetes Deployments, Services, and ConfigMaps as Terraform code — gaining plan review, drift detection, state tracking, and destroy that raw kubectl apply never provides.
Here you'll rebuild the manual workload entirely in HCL as kubernetes_config_map, kubernetes_deployment, and kubernetes_service resources, wire config into the container with env_from and config_map_ref, surface the LoadBalancer IP as an output, and confirm idempotency with a follow-up plan that reports no changes. After this lecture, you'll be able to manage Kubernetes Deployments, Services, and ConfigMaps as Terraform code — gaining plan review, drift detection, state tracking, and destroy that raw kubectl apply never provides.
This hands-on lab brings Helm inside Terraform's lifecycle: you configure provider "helm", declare a helm_release for the NGINX Ingress Controller, and walk through init, plan, apply, and a live value update — with no separate helm install step. The release lives in Terraform state and responds to plan and destroy like any other resource. After this lecture, you'll be able to install and manage production-grade Helm charts as first-class Terraform infrastructure.
This hands-on lab brings Helm inside Terraform's lifecycle: you configure provider "helm", declare a helm_release for the NGINX Ingress Controller, and walk through init, plan, apply, and a live value update — with no separate helm install step. The release lives in Terraform state and responds to plan and destroy like any other resource. After this lecture, you'll be able to install and manage production-grade Helm charts as first-class Terraform infrastructure.
This lab adds organizational and security structure to your cluster with three Terraform-managed resources — kubernetes_namespace, kubernetes_secret, and kubernetes_role_binding — creating a dedicated namespace, a secret seeded by the random_password generator from Day 3, and a role binding granting a group read-only view access. It also makes clear that Kubernetes secret values are base64-encoded, not encrypted. After this lecture, you'll be able to define namespaces, secrets, and RBAC as code and use built-in cluster roles instead of hand-writing custom rules.
This lab adds organizational and security structure to your cluster with three Terraform-managed resources — kubernetes_namespace, kubernetes_secret, and kubernetes_role_binding — creating a dedicated namespace, a secret seeded by the random_password generator from Day 3, and a role binding granting a group read-only view access. It also makes clear that Kubernetes secret values are base64-encoded, not encrypted. After this lecture, you'll be able to define namespaces, secrets, and RBAC as code and use built-in cluster roles instead of hand-writing custom rules.
This lesson consolidates the day's work into one authoritative side-by-side comparison of AKS, EKS, and GKE — cluster identity, node pool wiring, kubeconfig assembly, provisioning speed, and control plane cost — now grounded in three real cluster applies rather than documentation. You'll see where AKS wins on identity simplicity, why EKS carries the most IAM overhead and the only hourly control-plane charge, and how GKE sits in between. After this lecture, you'll be able to choose confidently among the three managed-Kubernetes providers using a comparison you've verified firsthand.
The Day 9 capstone brings the whole day together in one coherent Terraform project — AKS cluster, the Kubernetes provider wired to it, namespaced workloads, a Helm chart install, and a verified terraform destroy — driven by a single terraform apply and living under the same plan/apply/destroy lifecycle used since Day 2. After this lecture, you'll be able to assemble cluster provisioning, workloads, Helm, and RBAC into one reproducible pipeline, then tear it down and verify nothing remains billable in Azure.
In this hands-on lab you provision a Google Kubernetes Engine cluster with a separately-managed node pool using Terraform, completing three-cloud Kubernetes coverage alongside AKS and EKS. You'll discard the default node pool in favour of a fully controlled one, configure service account-based identity, and use yamlencode() to assemble a working kubeconfig from scratch — since GKE exposes no built-in kube_config attribute unlike AKS. You'll verify connectivity with kubectl get nodes and understand the key provisioning differences across all three Kubernetes providers. Remember to run terraform destroy afterward to avoid unexpected GKE charges.
This deliberate recap rebuilds the flat, inline Azure VM from Day 5 — resource group, VNet, subnet, public IP, NIC, and VM all declared directly in main.tf, then init, plan, apply, and destroy — with no module or abstraction. The point is to establish an honest, measured "before": an exact line count and the precise number of edit points needed just to change the VM size. After this lecture, you'll be able to stand up a complete inline Azure VM chain and quantify the maintenance cost of copy-pasteable, unmodularized infrastructure.
This deliberate recap rebuilds the flat, inline Azure VM from Day 5 — resource group, VNet, subnet, public IP, NIC, and VM all declared directly in main.tf, then init, plan, apply, and destroy — with no module or abstraction. The point is to establish an honest, measured "before": an exact line count and the precise number of edit points needed just to change the VM size. After this lecture, you'll be able to stand up a complete inline Azure VM chain and quantify the maintenance cost of copy-pasteable, unmodularized infrastructure.
This lesson deliberately commits the classic anti-pattern: duplicating the same VM resource block three times for dev, stage, and prod — fifteen resources and roughly three times the single-environment line count. You'll see how duplication drift happens and why every future change now means editing three places. After this lecture, you'll be able to recognize the copy-paste problem in real configurations and explain concretely why it's the exact pain that modules exist to cure.
Here you'll take the three-environment main.tf from the copy-paste lab and apply one simple VM resize across all three — timing yourself, counting the edits, and honestly recording in NOTES.md what went wrong or nearly did across three edits, three plan cycles, and three apply confirmations. No new Terraform concepts, just real measurement of real friction. After this lecture, you'll be able to quantify the risk surface and effort of repeating one logical change across duplicated environments — the baseline the module fix is measured against.
This lesson takes the azure-vm module extracted back on Day 5 and packages it the way real teams do: a README with a full input/output reference table, a CHANGELOG marking version 1.0, and a terraform validate to confirm nothing broke — even for docs-only changes. That packaging discipline is what turns a directory of .tf files into a team-ready artifact. After this lecture, you'll be able to document and version a Terraform module into a genuinely reusable component a teammate can adopt without asking a single question.
In this hands-on lab you'll call the packaged azure-vm module three times from a single module block using for_each over a locals map — collapsing 165 lines of copy-pasted HCL down to roughly twenty lines of calling code while still landing the same fifteen real Azure resources. After this lecture, you'll be able to stamp out identical infrastructure across multiple environments with one module block and for_each, driving every environment from a single source of truth.
In this hands-on lab you'll call the packaged azure-vm module three times from a single module block using for_each over a locals map — collapsing 165 lines of copy-pasted HCL down to roughly twenty lines of calling code while still landing the same fifteen real Azure resources. After this lecture, you'll be able to stamp out identical infrastructure across multiple environments with one module block and for_each, driving every environment from a single source of truth.
The Day 10 capstone makes the exact VM-size change from the earlier pain-measurement lab again, but under the module approach — one edit, one plan, one apply — and documents the before-versus-after in hard numbers: three edits and real blast-radius risk against one edit and a structural guarantee. You'll read the plan itself as proof. After this lecture, you'll be able to demonstrate the modules payoff with measured evidence and carry the for_each-over-a-module pattern into every multi-environment project.
Walk through the architecture and design decisions for building a reusable aws-ec2-instance Terraform module, covering input variables, outputs, and internal resource structure.
This lesson reuses the aws_ec2_module from Day 6 across dev, stage, and prod with a single for_each module call, then proves that changing only prod leaves dev and stage untouched — confirming the isolated blast radius on AWS exactly as on Azure. After this lecture, you'll be able to apply the same module-plus-for_each pattern to AWS EC2 instances and confirm it's cloud-agnostic — and you'll remember to run terraform destroy so no EC2 instances are left running on the clock.
The final Day 10 lab closes the three-cloud arc by spinning up three Google Compute Engine instances — dev, stage, and prod — from one parameterized module call with for_each, with the calling pattern unchanged from Azure and AWS and all provider-specific detail living inside the module. After this lecture, you'll be able to reuse a GCP compute module across environments and explain how Terraform's module system is a universal abstraction independent of the provider underneath — remembering to destroy your GCP resources afterward.
This lecture introduces the gcp-compute-instance Terraform module design: how to abstract GCP Compute Engine instance provisioning into a reusable module, define input variables for machine type, image, network configuration, and labels, and expose outputs for instance ID and IP addresses. You'll see the Terraform file structure, variable definitions, and how for_each enables multi-environment deployments from a single module call — completing the three-cloud module arc alongside the Azure VM and AWS EC2 modules.
This course takes you from the fundamentals of Infrastructure as Code to advanced, production-grade Terraform practices across all three major public clouds — AWS, Azure, and Google Cloud. You'll start with core concepts: providers, resources, the Terraform workflow (init, plan, apply, destroy), variables, outputs, locals, and built-in functions, reinforced with hands-on labs using the local and random providers before you ever touch a cloud account.
From there, you'll provision real infrastructure on Azure (virtual machines, storage, networking), AWS (EC2, S3, VPC, IAM), and Google Cloud (Compute Engine, GCS, VPC, IAM), building reusable modules for each. You'll master remote state and team workflows — S3, Azure Storage, and GCS backends, state locking, drift detection, and terraform import — and then move into managed Kubernetes, provisioning AKS, EKS, and GKE clusters with Terraform and deploying workloads with the Kubernetes and Helm providers.
The course dedicates a full section to testing Terraform code with terraform test, Terratest, and static analysis tools like tflint, tfsec, and Checkov, and another to building your own custom Terraform providers in Go using the Plugin Framework — schemas, CRUD operations, data sources, and acceptance testing. You'll also work with provisioners, orchestrate Ansible from Terraform, and integrate HashiCorp Vault for secrets management and dynamic credentials across AWS, Azure, and GCP.
Rounding out the training, you'll set up Terraform Cloud for remote runs and CI/CD, and implement policy as code with both Sentinel and Open Policy Agent (OPA) to enforce tagging standards, cost guardrails, and security rules automatically. The course closes with multiple capstone projects that combine everything into multi-cloud landing zones, GitOps pipelines, and zero-trust secrets architectures.
Every concept is paired with a dedicated hands-on lab, so you'll finish this course with real, tested Terraform code and the confidence to design, deploy, and govern infrastructure across any cloud.