IT & Cloud free courses

Master the TrickProfessionalFree

Infrastructure as Code Basics

Understand declarative infrastructure, plan review, state protection and drift management before touching real resources.

3 reading lessons · about 30 min ·written by MTT

The idea

Infrastructure as code records intended resources in versioned configuration. Declarative tools compare desired configuration with known or observed infrastructure through their own mechanisms. Dependencies matter: a service may need a network and identity before it can start. Configuration is not permission to operate on any account.

Worked example

A fictional plan describes a network, a storage resource and a service identity. A reviewer sees their relationships in a diff. The same code run against the wrong account could affect unrelated resources, so environment and credentials require explicit checks.

Try it

Draw three fictional resources and their dependencies. Write names for development and production environments and identify the check that prevents mixing them. Explain which configuration changes need review even if the file is syntactically valid.

Lesson 1 of 3 · About 10 min

Describe the desired resources

Check your understanding

Course quiz

Finish the course to unlock the quiz

Complete all 3 lessons and 5 questions open up here. You have 3 to go.

What you will learn

  • Describe desired infrastructure and dependencies
  • Review create, change and destroy plans
  • Protect state and handle drift deliberately

Before you start

Prerequisites
Basic cloud and version-control familiarity. Paper plans avoid live infrastructure costs.
Cost
Free introductory reading lessons, exercises and quiz. Optional third-party tools, hosting or AI subscriptions may cost money.

Original introductory lessons and assessment by Master the Trick. Estimated times include the suggested exercises.