Terraform: Infrastructure as Code
Providers, state, modules and provisioning real cloud resources.
Taught by Prakash Shrestha · Cloud Solutions Architect
What you'll learn
- Write Terraform configurations in HCL using resources, variables, outputs and locals
- Run the init, plan, apply and destroy workflow and read a plan before approving it
- Store state in a remote S3 backend with locking and move or import resources safely
- Build versioned, reusable modules with clear inputs and outputs
- Manage multiple environments and detect drift with refresh-only plans
- Automate formatting, validation and plans in a CI pipeline using OIDC credentials
About this course
Infrastructure as code is now the standard way teams build cloud environments, and Terraform is the most widely used tool for it. This intermediate course is for developers, cloud engineers and system administrators who can already use a cloud console and want to replace manual clicking with reviewed, repeatable code. You will write HashiCorp Configuration Language (HCL), use providers to create real AWS resources, and master the plan and apply workflow. You will learn how state works, store it safely in a remote backend with locking, import existing resources, build reusable modules, manage environments with workspaces and variables, detect drift and run Terraform in a CI/CD pipeline with pull-request plans. You should be comfortable with a terminal and have basic cloud knowledge. The content also lines up with the Terraform Associate certification. Independent study material — not affiliated with or endorsed by HashiCorp.
Course content
7 lessons- 1Infrastructure as Code and How Terraform WorksWhy teams define infrastructure in code, and Terraform's core workflow from init to destroy.Preview
- 2HCL Essentials: Variables, Outputs and ExpressionsThe language building blocks that turn hard-coded files into flexible, reusable configuration.
- 3Providers and Real Cloud ResourcesConfigure the AWS provider securely, create a bucket and read existing data with data sources.
- 4State, Remote Backends and ImportsUnderstand the state file, store it remotely with locking, and refactor or import resources safely.
- 5Building Reusable ModulesPackage infrastructure into modules with clear inputs and outputs, and consume them from the registry.
- 6Environments, Loops, Workspaces and DriftScale configurations with count and for_each, separate environments and catch drift early.
- 7Terraform in CI/CD and the Associate PathAutomate fmt, validate and plan on pull requests, apply safely, and prepare for the Terraform Associate.