Course Title: dgt_devops06 – OpenTofu (Terraform Fork)
Overview
In DevOps and infrastructure management, “Infrastructure as Code” (IaC) is a widely used practice that lets teams automate and manage their infrastructure. This course introduces OpenTofu, a fork of Terraform that emerged in response to HashiCorp’s changes to Terraform’s licensing. Terraform was originally released under open-source licenses such as MIT and Apache 2.0, but the more recent shift to the Business Source License (BSL) has led developers to seek alternatives that adhere more closely to traditional open-source principles.
In the practical part you will not write HCL by hand. You will describe the infrastructure you want to the machine in natural language (resources, providers, naming, constraints), let it produce the OpenTofu configuration, and then read that configuration and the plan it generates line by line, checking them against what you learned about state, providers and dependencies before allowing anything to be applied.
Course Objectives
- Understand the history and reasons behind the creation of OpenTofu.
- Learn to drive OpenTofu infrastructure-as-code projects in natural language, reviewing every configuration and plan the machine proposes.
- Compare and contrast OpenTofu with Terraform, emphasizing licensing implications.
- Learn about community-driven support for emerging open-source projects like OpenTofu.
Modules
- Introduction to Infrastructure as Code
- The evolution of IaC
-
Key principles and benefits
-
Understanding Terraform’s Licensing Changes
- Overview of BSL vs. MIT, Apache 2.0, and GPL
-
Implications for open-source projects and users
-
OpenTofu: A Community-Driven Fork
- Origins and motivations behind OpenTofu
-
Key features and community contributions
-
Getting Started with OpenTofu
- Installation and setup, carried out by the machine on your instructions and verified by you
-
Basic configuration and deployment examples: describing the target infrastructure, reading the generated configuration and validating the plan
-
Advanced Use Cases of OpenTofu
- Complex infrastructure setups specified in natural language and reviewed for correctness
-
Integrations with other DevOps tools
-
Supporting Open Source Innovation: In Garanti del Talento
- The role of initiatives like “In Garanti del Talento” in nurturing open-source projects
- How to contribute and support emerging technologies
Target Audience
This course is intended for IT professionals, DevOps engineers, cloud architects, and anyone working on infrastructure automation. It is suitable both for experienced Terraform users and for those new to IaC concepts, and it covers the current state of open-source IaC tools.
Outcome
By the end of this course, participants will understand OpenTofu as an alternative to Terraform and will be able to direct a machine to implement it in their projects, judging whether its configurations and plans are correct and safe. Additionally, you’ll learn how community efforts like “In Garanti del Talento” support open-source innovation.
The course covers infrastructure management with OpenTofu.
The students can push their exercises to the Academy DevOps & SRE Git project. For this module, create a folder with your username as its name in the following subfolder: https://github.com/Garanti-Del-Talento/gdt_academy/tree/main/dgt_devops06__opentofu
