Infrastructure as Code (IaC) using OpenTofu (the open-source fork of Terraform) on Azure, AWS, and GCP

Master the art of cloud automation with OpenTofu, the open-source evolution of Terraform. In this three-day immersive training, you’ll learn to design, deploy, and manage infrastructure across Azure, AWS, and GCP — building scalable, secure, and reproducible environments through Infrastructure as Code.

Course objectives

By the end of this course, participants will be able to:

  • Understand OpenTofu fundamentals and its relationship to Terraform.
  • Install, configure, and use OpenTofu with Azure, AWS, and GCP.
  • Build, deploy, and manage multi-cloud infrastructure declaratively using OpenTofu.
  • Apply best practices for state management, version control, and CI/CD integration.
  • Securely manage credentials and secrets across cloud providers.
  • Troubleshoot and optimize OpenTofu deployments in multi-cloud environments.

Prerequisites

  • Basic knowledge of cloud services (Azure, AWS, or GCP: compute, storage, networking)
  • Familiarity with CLI tools and YAML/JSON syntax
  • Optional: Prior exposure to Terraform or Infrastructure as Code concepts

Target audience

  • Cloud Engineers / Architects
  • DevOps Engineers
  • System Administrators
  • Developers managing infrastructure on Azure, AWS, or GCP

About the instructor: Peter McNaughton

“Peter has been teaching and consulting since 1995. Before joining Novell Peter was an analytical Chemist, and has been involved in many projects , both in the private and Public Sectors, with particular exposure to power, commercial banking and MOD within NATO.

Currently Peter is involved with providing consultancy on a digital DevOps  transformation from a large monolithic legacy environment to a cloud native environment using Terraform as the primary IAC tool.”

Module 1: Introduction to OpenTofu 1.10

  • What is OpenTofu?
  • Differences between OpenTofu and Terraform
  • OpenTofu ecosystem and community
  • Core concepts: Providers, Resources, Variables, State, and Modules
  • IaC fundamentals and benefits

Lab 1: Installing OpenTofu on local environments (Windows/macOS/Linux)

Module 2: Cloud Integration (Azure, AWS, GCP)

  • Overview of Azure Resource Manager (ARM), AWS APIs, and GCP APIs
  • Setting up authentication with Azure CLI, AWS CLI, and gcloud CLI
  • Configuring OpenTofu with multi-cloud credentials
  • Understanding cloud providers for OpenTofu
  • Managing secrets securely with Azure Key Vault, AWS Secrets Manager, and Google Secret Manager

Lab 2:

  • Configure OpenTofu to connect to Azure, AWS, and GCP
  • Create a resource group (Azure), an S3 bucket (AWS), and a storage bucket (GCP)

Module 3: Building Infrastructure with OpenTofu

  • Writing OpenTofu configuration files (.tf files)
  • Variables, outputs, and data sources
  • Resource dependencies and implicit ordering
  • Managing cloud resources (VMs, networks, storage, etc.)
  • Enhanced planning and modular design

Lab 3:

  • Deploy a simple virtual network and compute instance on Azure, AWS, and GCP

Module 4: State Management

  • Understanding state files
  • Remote state storage using Azure Blob Storage, AWS S3, and GCP Cloud Storage
  • State locking and collaboration
  • Version control and state best practices

Lab 4:

  • Configure remote state backends for each cloud provider
  • Demonstrate collaborative infrastructure updates

Module 5: Modularity and Reusability

  • Creating and using modules
  • Structuring reusable OpenTofu configurations
  • Using the OpenTofu Registry
  • Passing variables and outputs between modules

Lab 5:

  • Build a reusable multi-cloud networking module

Module 6: Testing, Validation, and Debugging

  • Validating configurations (tofu validate, tofu fmt, tofu plan)
  • Troubleshooting common errors
  • Using tofu graph for dependency visualization
  • Drift detection and remediation

Lab 6:

  • Identify and fix configuration drift across multiple clouds

Module 7: CI/CD Integration with Azure DevOps, GitHub Actions & Jenkins

  • Automating OpenTofu workflows
  • Integrating with Azure DevOps Pipelines, GitHub Actions, and Jenkins
  • Policy enforcement and approval gates

Lab 7:

  • Set up a CI/CD pipeline to deploy multi-cloud infrastructure using OpenTofu

Module 8: Advanced Topics & Best Practices

  • Managing environments (dev/test/prod)
  • Secrets management and compliance
  • Cost optimization and tagging strategies across providers
  • Security considerations and governance
  • Migrating from Terraform to OpenTofu

Lab 8:

  • Implement multi-environment management using workspaces

Module 9: DevOps Automation Project

End-to-end project:

  • Design and deploy a multi-tier application across Azure, AWS, and GCP using OpenTofu
  • Include networking, compute, and storage layers
  • Use remote state, modules, and pipeline automation

Tools & Resources

  • OpenTofu CLI
  • Azure CLI / AWS CLI / gcloud
  • Visual Studio Code with OpenTofu extension
  • Git / GitHub
  • Azure DevOps, GitHub Actions, or Jenkins

1. Hvem passer dette kurset for?
Kurset passer for deg som arbeider med moderne cloud-infrastruktur, automasjon og DevOps. Typiske roller inkluderer:

  • Cloud Engineers / Cloud Architects
  • DevOps Engineers
  • Systemadministratører
  • Utviklere som administrerer infrastruktur på Azure, AWS eller GCP

2. Hvilke forkunnskaper bør jeg ha?
Det anbefales at du har:

  • Grunnleggende forståelse av skytjenester (Azure, AWS, eller GCP – compute, storage, networking)
  • Kjennskap til CLI-verktøy og YAML/JSON-syntaks
  • (Valgfritt) Erfaring med Terraform eller Infrastructure as Code-konsepter

3. Hva lærer jeg i kurset?
Etter kurset vil du kunne:

  • Forstå OpenTofu og hvordan det relaterer seg til Terraform
  • Installere, konfigurere og bruke OpenTofu med Azure, AWS og GCP
  • Bygge, deploye og administrere multi-cloud infrastruktur deklarativt
  • Håndtere state management, versjonskontroll og CI/CD-integrasjon
  • Sikre håndtering av nøkler, credentials og secrets på tvers av skyleverandører
  • Feilsøke og optimalisere OpenTofu i multi-cloud miljøer

4. Hvordan foregår kurset?

  • Varighet: 3 dager
  • Instruktør: Peter McNaughton
  • Format: Instruktørledet kurs med praktiske øvelser og labber
  • Kombinerer teori, best practices og lab-oppgaver med reelle sky-miljøer

5. Er dette kurset praktisk?
Ja! Kurset har en sterk praktisk profil, med hands-on øvelser i alle moduler. Du vil blant annet:

  • Installere og konfigurere OpenTofu på lokale miljøer
  • Koble OpenTofu mot Azure, AWS og GCP og opprette ressurser i hver sky
  • Administrere state i remote backends (Azure Blob, AWS S3, GCP Storage)
  • Bygge moduler, feilsøke og håndtere drift mellom flere skylag
  • Automatisere utrulling via CI/CD-pipelines i Azure DevOps, GitHub Actions og Jenkins

6. Hva koster kurset?
Pris: 22 900 NOK (eksamen ikke inkludert – dette er et ferdighetskurs uten sertifisering)

7. Hvilke temaer og teknologier dekkes?
Kurset dekker blant annet:

  • OpenTofu fundamentals og IaC-prinsipper
  • Multi-cloud integrasjon med Azure, AWS og GCP
  • Moduler, state management, og samarbeid i team
  • Drift, sikkerhet, kostoptimalisering og compliance
  • Automatisering med CI/CD pipelines
  • Migrering fra Terraform til OpenTofu

8. Hvilke verktøy brukes i kurset?

  • OpenTofu CLI
  • Azure CLI / AWS CLI / gcloud
  • Visual Studio Code med OpenTofu-utvidelse
  • Git / GitHub
  • Azure DevOps, GitHub Actions og Jenkins

9. Hvorfor velge dette kurset?
Dette kurset skiller seg ut ved å kombinere multi-cloud kompetanse med hands-on automasjon.

Du lærer å bygge profesjonell infrastruktur som kode med OpenTofu – et moderne, åpen kildekode-alternativ til Terraform – og får erfaring med reelle driftsmiljøer og CI/CD-integrasjoner.

See relevant courses to explore:

See relevant course areas to explore:

Andre relevante kurs

13. januar
4 dager
Classroom
8. desember
5 dager
Classroom Virtual