Terraform for beginners
Learn infrastructure as code with Terraform: providers, resources and the HCL language, the init, plan and apply workflow, state and remote backends with locking, variables and outputs, data sources, modules, managing environments, and the habits that keep infrastructure changes safe.
CodexBash, , 6 min read
Creating cloud resources by clicking through a web console works once. It does not scale to dozens of resources across several environments, it leaves no record of who changed what, and rebuilding everything after a mistake becomes guesswork. Infrastructure as code (IaC) solves this by describing infrastructure in files that live in git, are reviewed like code and are applied by a tool. Terraform, created by HashiCorp, is the most widely used IaC tool, with providers for AWS, Azure, Google Cloud, Kubernetes, Cloudflare, GitHub and hundreds more. (OpenTofu is an open-source fork with the same language and workflow.) This guide covers the essentials.
Sign in to read the rest
The whole 6 minute article is free with an account, along with every problem, lesson and tutorial. No card.