Packt
Infrastructure Automation with OpenTofu – Hands-On DevOps
Packt

Infrastructure Automation with OpenTofu – Hands-On DevOps

Included with Coursera Plus

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

12 hours to complete
3 weeks at 4 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

12 hours to complete
3 weeks at 4 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Master OpenTofu for automating infrastructure provisioning and management.

  • Migrate from Terraform seamlessly while understanding key differences.

  • Optimize workflows with OpenTofu modules, providers, and registries.

  • Implement best practices for state management, debugging, and automation.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

April 2025

Assessments

17 assignments

Taught in English
Placeholder

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV

Share it on social media and in your performance review

Placeholder

There are 17 modules in this course

In this module, we will introduce you to the fundamentals of Infrastructure Automation with OpenTofu, highlighting its differences with Terraform. You will also get hands-on experience exploring OpenTofu documentation, providing a solid foundation for the rest of the course.

What's included

3 videos1 reading

In this module, we will guide you through the essential setup steps for OpenTofu, including prerequisite installation and configuration. You'll also explore hands-on demos for integrating OpenTofu with AWS and setting it up on macOS, ensuring you're ready to start automating infrastructure efficiently.

What's included

4 videos1 assignment

In this module, we will dive into the OpenTofu Configuration Language, explaining its syntax and structure for creating automation scripts. You'll also explore the CLI and experience hands-on demonstrations of how to use it to manage and execute OpenTofu configurations efficiently.

What's included

4 videos1 assignment

In this module, we will explore OpenTofu providers, covering the different types and how to manage multiple providers in a configuration. You will also learn how to work with provider documentation and get hands-on experience creating and using providers in OpenTofu projects.

What's included

4 videos1 assignment

In this module, we will introduce you to Library.tf, a crucial registry for managing resources in OpenTofu. You’ll also explore how to use the GUI to interact with the registry, followed by a demonstration of integrating Library.tf into your OpenTofu configurations.

What's included

2 videos1 assignment

In this module, we will cover the OpenTofu workflow for managing infrastructure resources, including how to handle resource updates and references. Through hands-on demos, you'll explore resource documentation, create instances on AWS, and practice updating resources both in-place and by recreation.

What's included

7 videos1 assignment

In this module, we will guide you through the migration and rollback process from Terraform to OpenTofu. You will also participate in a hands-on demonstration of migrating a Terraform configuration to OpenTofu, ensuring you are equipped with the skills to manage the transition confidently.

What's included

2 videos1 assignment

In this module, we will cover everything you need to know about input variables in OpenTofu, from file structure to advanced variable usage. You’ll learn how to define, pass, and manage input variables using different methods, with hands-on demonstrations to reinforce these concepts and best practices.

What's included

12 videos1 assignment

In this module, we will focus on output values in OpenTofu, explaining how to retrieve and display useful information after executing your configurations. You'll also participate in a hands-on demonstration of using the Tofu Console command and output blocks to manage and visualize your output values.

What's included

2 videos1 assignment

In this module, we will explore provisioners and the connection block in OpenTofu, including their different types and configurations. You will see hands-on demonstrations of local, remote, and file provisioners, along with how to manage their execution and handle failures. This module will equip you with the tools to automate resource setup more effectively.

What's included

4 videos1 assignment

In this module, we will explore the role of data sources in OpenTofu, focusing on how they help retrieve and manage external information. You will see demonstrations that highlight the challenges of not using data sources and how incorporating them can resolve common configuration issues.

What's included

3 videos1 assignment

In this module, we will cover how to use and manage modules in OpenTofu, including creating both root and child modules. You’ll also explore how to navigate module documentation and the module registry, followed by a demonstration of publishing custom code to the registry, enabling reuse and efficient infrastructure management.

What's included

7 videos1 assignment

In this module, we will explore the concept of state and state files in OpenTofu, detailing their purpose in tracking infrastructure changes. Through hands-on demos, you will work with terraform.tfstate and terraform.tfstate.backup files, and learn how to use the "tofu state" command to manage and interact with state files effectively.

What's included

5 videos1 assignment

In this module, we will cover the importance of remote state and backends in OpenTofu, focusing on how they enhance infrastructure management and collaboration. Through practical demos, you'll learn how to prepare and implement remote backends to store and manage state remotely, ensuring a scalable and secure approach to your configurations.

What's included

3 videos1 assignment

In this module, we will dive into advanced OpenTofu features, covering timeouts, debugging, taints, and untaints to manage infrastructure effectively. You’ll explore practical demos on debugging, using the "tofu graph" command, importing existing infrastructure, and managing local values blocks and provider aliases to optimize your configurations.

What's included

12 videos1 assignment

In this module, we will explore key OpenTofu concepts such as meta-arguments, functions, and workspaces. You’ll learn how to apply lifecycle rules, manage dependencies with depends_on, dynamically create resources with count and for_each, and use built-in functions. Additionally, we'll cover how to use workspaces for managing different environments, with hands-on demos to solidify your understanding.

What's included

12 videos1 assignment

In this module, we will dive into sample OpenTofu projects, starting with an overview of VPC and compute resources. You will get hands-on experience with configuring and deploying VPC networks and compute components. Additionally, we will guide you through the setup of Amazon Elastic Kubernetes Service (EKS), offering a practical approach to container orchestration in AWS using OpenTofu.

What's included

5 videos2 assignments

Instructor

Packt - Course Instructors
Packt
575 Courses94,182 learners

Offered by

Packt

Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

New to Cloud Computing? Start here.

Placeholder

Open new doors with Coursera Plus

Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Frequently asked questions