Back to top

Terraform Articles

102 articles on Terraform certification prep and technical concepts

Browse all categories

AllDatabricksSnowflakeTerraformVaultKafkadbtNVIDIAAzureGoogle CloudAWS

Terraform

102 articles

HCL Syntax: Terraform's Configuration Language (2026)

HCL2 fundamentals for Terraform — blocks, attributes, expressions, types. The language layer every Terraform cert tests.

Terraform Authoring & Operations Pro: Complete Guide (2026)

Tactics for the Terraform Pro exam — module authoring, workspace operations, HCP Terraform features, and what's heavily tested.

Terraform Providers: Plugin Management Fundamentals (2026)

Provider mechanics — required_providers, versions, mirrors, plugin cache. Required Associate-level knowledge.

Terraform Resource Blocks: Declarative Infra Units (2026)

Resource block fundamentals — addresses, references, common arguments. The foundation of every Terraform config.

Terraform Data Sources: Read-Only External Data (2026)

Data source basics — declaration, refresh behavior, dependency rules. Pull existing infra into your config.

terraform init: What It Actually Does (2026)

init mechanics — provider plugins, backend setup, module download. The first command and what it locks in.

terraform plan: Read the Diff Like a Pro (2026)

plan output — symbols, replacements, computed values. How to spot dangerous diffs before applying.

terraform apply: Safe Execution Patterns (2026)

apply mechanics — confirmation, partial failures, retry. The patterns for safe production rollouts.

terraform destroy: When and How (2026)

destroy semantics — full vs. targeted destroy, lifecycle blocks that prevent it. Common safety patterns.

terraform refresh: Drift Detection Basics (2026)

refresh mechanics — when state diverges from reality, refresh-only mode, common gotchas.

terraform validate: Static Config Checking (2026)

validate scope — what's checked, what isn't, common CI usage patterns.

terraform fmt: Style Normalization (2026)

fmt rules — diff vs. check, recursive mode, pre-commit integration. Common style patterns.

terraform console: Interactive Expression Evaluation (2026)

console use cases — debugging interpolations, testing functions, exploring state. The forgotten productivity tool.

terraform graph: Visualizing Dependencies (2026)

graph output — module structure, dependency edges, common visualization workflows.

terraform output: Programmatic Result Access (2026)

output usage — JSON mode, raw mode, sensitive handling. The integration point for CI/CD.

Terraform Input Variables: Design Patterns (2026)

Variable types, defaults, validation, sensitive flag. The right way to parameterize Terraform configs.

Terraform Output Values: Module Contracts (2026)

Outputs as the API of a module — sensitive outputs, depends_on, dynamic outputs. Patterns that scale.

Terraform Local Values (locals): When to Use Them (2026)

Locals for clarity, not for cache. When locals beat variables and when they cause unnecessary indirection.

Terraform Variable Types: string, list, map, object, tuple (2026)

Type constraint deep dive — object vs. map, list vs. tuple, type conversions. Common type errors decoded.

Terraform Sensitive Variables: Avoiding Plan Leaks (2026)

Sensitive flag mechanics — propagation, log redaction, state file storage. Critical for production secrets.

Terraform Variable Validation: Custom Type Guards (2026)

validation blocks — condition, error_message, common patterns for safer modules.

Terraform for-Expressions: List & Map Comprehensions (2026)

for-expression syntax — list, map, if-filter, group, common transformation patterns.

Terraform Conditionals: The Ternary Operator (2026)

Ternary patterns — provider/lifecycle restrictions, common workarounds for null cases.

Terraform Splat Expressions: [*] and Full Splat (2026)

Splat operator mechanics — when [*] beats for, scope rules, deprecated full-splat syntax.

Terraform Dynamic Blocks: Repeated Nested Blocks (2026)

Dynamic block syntax — for_each iteration, conditional generation, common provider examples.

Terraform Built-In Functions Reference (2026)

Most-used Terraform functions — string, collection, encoding, file, type conversion. The cheat sheet.

Terraform State: The Source of Truth (2026)

State internals — schema, ID tracking, serialization. Why state correctness is non-negotiable.

Local State (terraform.tfstate): Risks at Scale (2026)

Local state — when it's OK (POCs), when it isn't (teams). Migration path to remote state.

Remote State: S3, GCS, Azure, HCP Terraform (2026)

Remote state backend comparison — auth, locking, encryption, versioning. Required for any team workflow.

S3 Backend: Terraform State with DynamoDB Locking (2026)

S3 backend configuration — bucket policy, DynamoDB lock table, encryption. The most common remote backend.

GCS Backend: Terraform State on Google Cloud (2026)

GCS backend setup — service account auth, native locking, versioning. The GCP-native remote backend.

Azure Backend: Terraform State in Azure Storage (2026)

Azure backend config — container, SAS, Azure AD auth. Locking via lease and common gotchas.

HCP Terraform / Terraform Cloud Backend (2026)

HCP Terraform as backend — workspaces, remote execution, API tokens. The HashiCorp-recommended path.

Terraform State Locking: Preventing Concurrent Modification (2026)

Lock mechanisms by backend — DynamoDB, GCS native, Azure lease. force-unlock and recovery.

terraform state rm: Removing Resources from State (2026)

When and how to use state rm — orphan resources, refactoring, common reasons.

terraform state mv: Renaming Without Recreation (2026)

state mv for refactoring — module-to-module moves, count to for_each conversions.

terraform state pull/push: Direct Manipulation (2026)

state pull/push for advanced recovery — dangers, alternatives via moved blocks, when truly needed.

terraform import: Bringing Existing Infra Into Config (2026)

Classic import workflow — pre-create resource block, run import, generate config. Now superseded by import blocks.

Terraform import Block: Declarative Import (1.5+) (2026)

Import blocks (Terraform 1.5+) — declarative syntax, generate config (-generate-config-out), CI patterns.

Terraform moved Block: Refactoring Without State Tricks (2026)

moved block syntax — refactor across modules, rename without state mv, common CI safety patterns.

Terraform removed Block: Decommission Without destroy (2026)

removed block (Terraform 1.7+) — remove from state without destroying. Patterns for orphan management.

Terraform Modules: Reusable Configuration Units (2026)

Module fundamentals — root vs. child, sources, inputs, outputs. The DRY layer of every project.

Terraform Module Inputs: Variable Design (2026)

Module input patterns — required vs. optional, types, validation, sensitive flag. Module API design.

Terraform Module Outputs: The Module Contract (2026)

Module output design — exposing IDs vs. objects, sensitive outputs, depends_on for ordering.

Terraform Module Versioning: SemVer & Constraints (2026)

Version constraint syntax, SemVer best practices, registry vs. Git source pinning, common pitfalls.

Public Terraform Registry: Finding Vetted Modules (2026)

Registry navigation — provider docs, verified modules, version selection. The discovery surface for HashiCorp.

Private Terraform Registry: Internal Module Distribution (2026)

Private registry options — HCP Terraform, self-hosted, generic. Auth and publication workflows.

Terraform Module Composition: Nested vs Flat (2026)

Composition strategies — nested module trees, flat root composition, trade-offs at scale.

Root vs Child Modules: Scope and Boundaries (2026)

Root vs. child module distinctions — backend config, provider configs, what each can declare.

Terraform Module Sources: Registry, Git, S3, Local (2026)

Every module source type — registry, Git (SSH/HTTPS), S3, GCS, local. Auth and version selection.

Terraform Module Best Practices (2026)

Module design principles — single responsibility, opinionated defaults, escape hatches, semantic versioning.

Terraform count Meta-Argument: Repeated Resources (2026)

count semantics — list indexing fragility, conditional creation pattern. When for_each is the better choice.

Terraform for_each Meta-Argument: Map/Set Iteration (2026)

for_each semantics — keyed addressing, stability, common patterns. The preferred way to iterate.

Terraform depends_on: Explicit Dependencies (2026)

When depends_on is needed — module-level dependencies, implicit vs. explicit, dependency cycles.

Terraform lifecycle Block: Create/Update/Destroy Control (2026)

lifecycle arguments — create_before_destroy, prevent_destroy, ignore_changes, replace_triggered_by.

Terraform provider Meta-Argument: Alias & Versions (2026)

Provider meta-arg patterns — alias for multi-region, version pinning, common multi-account setups.

replace_triggered_by: Forced Replacement on Other Changes (2026)

replace_triggered_by syntax — common rotation patterns, downstream replacement triggers.

Terraform Pre/Postconditions: Inline Assertions (2026)

Custom conditions — precondition vs. postcondition, when each fires, common safety patterns.

lifecycle.ignore_changes: Drift Tolerance (2026)

ignore_changes scope — attribute-level, all, common use cases (autoscaling, tags).

Terraform Cloud: Team Collaboration Fundamentals (2026)

HCP Terraform basics — organizations, workspaces, runs, plans, variables. The managed path for team workflows.

Terraform CLI Workspaces: Per-Environment State (2026)

Workspace mechanics — state isolation, terraform.workspace, common multi-env patterns. Different from HCP workspaces.

Terraform Cloud VCS Integration: GitHub/GitLab/Bitbucket (2026)

VCS connection setup — OAuth, GitHub Apps, webhooks. The PR-triggered plan workflow.

Terraform Cloud Run Triggers: Workspace Chaining (2026)

Run trigger mechanics — chain dependent workspaces, common patterns for layered infra.

Sentinel: HashiCorp's Policy-as-Code Engine (2026)

Sentinel basics — policy modes (advisory, soft-mandatory, hard-mandatory), common policy patterns.

OPA / Conftest for Terraform: Open-Source Policy (2026)

OPA + Conftest workflow — plan JSON, Rego policies, CI/CD integration. The free alternative to Sentinel.

Terraform Cloud Teams: Permissions and Access (2026)

Team management in HCP Terraform — workspace access, organization permissions, common roles.

HCP Terraform Private Module Registry (2026)

Publishing private modules — VCS connection, semver tags, internal discovery patterns.

Dynamic Provider Credentials: OIDC, No Static Keys (2026)

Dynamic credentials in HCP Terraform — AWS, GCP, Azure, Vault. Token issuance and trust setup.

HCP Terraform No-Code Modules: Self-Service Infra (2026)

No-code module publishing — variables UI, governance, common self-service patterns.

Terraform AWS Provider: Authentication & Common Resources (2026)

AWS provider auth chain — env, profile, IMDS, AssumeRole. Common resource patterns and provider tags.

Terraform azurerm Provider: Azure Resource Manager (2026)

azurerm provider — auth (Service Principal, MSI), features block, common Azure resources.

Terraform Google Cloud Provider: ADC & Service Accounts (2026)

Google provider auth — ADC, service account JSON, impersonation. Common GCP resources.

Terraform Kubernetes Provider: kubeconfig & In-Cluster (2026)

Kubernetes provider — kubeconfig, in-cluster, dynamic credentials from EKS/GKE/AKS.

Terraform Helm Provider: Chart Management (2026)

Helm provider — repository config, value rendering, dependency handling. K8s app deploys via Terraform.

Terraform Provider Authentication: Per-Cloud Patterns (2026)

Auth patterns for AWS, GCP, Azure, Kubernetes providers — env, profile, federated, OIDC.

Provider Aliases: Multi-Region & Multi-Account (2026)

Provider alias mechanics — multi-region deployment, cross-account access, module passing patterns.

Provider Version Constraints: Pinning Safely (2026)

required_providers version syntax — pessimistic, hash lock, common upgrade patterns.

Terraform Debugging: TF_LOG, Plan Output, Provider Logs (2026)

TF_LOG levels, plan JSON, provider debug. The right way to diagnose Terraform issues.

terraform apply -target: When It's OK (2026)

Targeted apply — emergency use cases, why it's discouraged, safer alternatives (refactor, moved).

Terraform Workspace Strategy: CLI vs HCP vs Folder-per-Env (2026)

Workspace strategies compared — CLI workspaces, HCP workspaces, folder-per-environment. Trade-offs at scale.

Terragrunt: DRY Wrapper for Terraform (2026)

Terragrunt fundamentals — inputs, dependencies, locking. When Terragrunt earns the extra layer.

Terraform Drift Detection: Continuous Monitoring (2026)

Drift detection workflows — periodic plan, HCP drift detection, third-party tools. Patterns that actually run.

Terraform Module Design Patterns (2026)

Design patterns for Terraform modules — single-purpose, composition, hierarchies, common anti-patterns.

Terraform Multi-Environment Patterns (2026)

Multi-env patterns — folder-per-env, workspaces, variables. Trade-offs for dev/stage/prod.

Terraform Multi-Region Patterns (2026)

Multi-region deployment — provider aliases, module patterns, DR considerations. Common architectures.

Shared Modules Across Teams: Governance (2026)

Sharing modules across teams — registry, semver, code review, deprecation. Org-wide reuse strategy.

Terraform Refactoring Patterns: Safe Migrations (2026)

Safe refactoring with moved blocks, state mv, removed blocks. The toolkit for evolving live infra.

Terraform Upgrade Strategy: CLI and Provider Versions (2026)

Upgrade approach — CLI version compatibility, provider deprecations, state file forward compatibility.

Terraform Cost Estimation: HCP and Third-Party (2026)

Cost estimation tooling — HCP Terraform's native, Infracost, common CI integration patterns.

Terraform Associate (TA-004): Complete Exam Guide (2026)

Pass the Terraform Associate exam — six domains, scope, sample questions, focused study plan.

Terraform Engineer Career & Salary (2026)

Career value of Terraform certifications — market demand, salary, role progression. Honest 2026 data.

Terraform Certifications: Associate & Pro Explained (2026)

Compare the Terraform certifications — Associate vs. Authoring & Operations Pro. Which to take and when.

Terraform CI/CD: Plan-Apply Workflow (2026)

Standard Terraform CI/CD — plan on PR, apply on merge, gating, common platform integrations.

Terraform Cert Difficulty: Associate vs Pro (2026)

Difficulty comparison — study time, prerequisites, exam style. Honest assessment for both certs.

Terraform Exam Cost: Fees, Vouchers, Retakes (2026)

Terraform certification fees, voucher options, retake rules. Total spend planning for Associate + Pro.

Terraform Exam: Test-Day Experience (2026)

First-hand Terraform exam accounts — online proctoring, time pressure, common surprises.

HCP Terraform Free Tier: Hands-On Setup (2026)

Use HCP Terraform's free tier for cert study — workspaces, plans, runs. What's free and what isn't.

Terraform Sample Questions: Format & Answer Walkthroughs (2026)

Real-format Terraform Associate sample questions with detailed answers. Calibrate before paid prep.

Terraform Study Guide: 3-Week Pass Plan (2026)

A focused 3-week study plan for the Terraform Associate exam — official docs, hands-on, mock exams.

Terraform Troubleshooting: Common Errors (2026)

Common Terraform errors and resolutions — provider, state, module, backend. Diagnose with TF_LOG.

Terraform Modules: The Complete Guide (2026)

End-to-end module guide — design, versioning, publishing, governance. From first module to org-wide registry.

Terraform Study Time: How Long Each Cert Takes (2026)

Realistic study-time estimates for Associate and Pro by background. Prior IaC vs. Terraform-specific experience.