Packt
Advanced Terraform - Variables, Modules, & State Management
Packt

Advanced Terraform - Variables, Modules, & State Management

Included with Coursera Plus

Gain insight into a topic and learn the fundamentals.
Beginner 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.
Beginner 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 the use of input variables, locals, and outputs for reusable and scalable Terraform configurations.

  • Implement complex data transformations using operators, functions, and expressions in Terraform.

  • Create and manage multiple resources dynamically using count and for_each arguments.

  • Design and publish reusable Terraform modules for AWS services and other cloud resources.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

April 2025

Assessments

8 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

Build your subject-matter expertise

This course is part of the Terraform Masterclass: From Beginner to Advanced Specialization
When you enroll in this course, you'll also be enrolled in this Specialization.
  • Learn new concepts from industry experts
  • Gain a foundational understanding of a subject or tool
  • Develop job-relevant skills with hands-on projects
  • Earn a shareable career certificate
Coursera Career Certificate

Earn a career certificate

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

Share it on social media and in your performance review

Coursera Career Certificate

There are 7 modules in this course

In this module, we will explore how to effectively handle input variables, locals, and outputs within Terraform. You will learn how to define flexible input variables, utilize locals for enhanced manageability, and manage outputs to pass key information between different parts of your infrastructure. Additionally, we will cover techniques to securely manage sensitive values and ensure configurations remain robust and clean.

What's included

19 videos2 readings1 assignment

In this module, we will dive into using expressions and functions to enhance your Terraform configurations. You'll learn how to work with operators, iterate over data structures with for expressions, and apply built-in functions to transform data. Additionally, we will explore splat expressions for efficient referencing of multiple resource attributes and demonstrate methods for converting between lists and maps.

What's included

12 videos1 assignment

In this module, we will cover managing multiple resources in Terraform using the count and for_each meta-arguments. You will practice creating EC2 instances dynamically using list and map variables, and learn how to extend configurations to handle subnet information for efficient resource placement. Additionally, we will explore validation techniques to maintain data integrity and consistency across your infrastructure.

What's included

17 videos1 assignment

In this section, we will guide you through a hands-on project to manage IAM users in AWS. You will learn how to define users, roles, and permissions, securely configure passwords, and implement AWS managed policies. By the end of the project, you’ll have practical experience in managing IAM users and roles and ensuring the security of your AWS environment.

What's included

9 videos1 assignment

In this module, we will focus on Terraform modules, helping you structure and reuse configurations more efficiently. You will explore public modules from the Terraform Registry, practice building custom modules, and learn how to test and publish them. Best practices for module design will also be covered to ensure that your code is both maintainable and reusable.

What's included

26 videos1 assignment

In this module, we will explore the use of preconditions, postconditions, and check blocks to validate and verify your Terraform resources. You will learn how to implement these features to ensure that your resources are deployed and configured correctly, reducing the chance of errors. By automating validation, you can maintain a consistent and reliable infrastructure.

What's included

8 videos1 assignment

In this module, we will explore how to manage Terraform's state file and perform operations like refactoring resources, importing existing infrastructure, and removing resources from the state. You will learn to manipulate the state file effectively and use commands like taint to ensure that resources are properly replaced or managed, all while maintaining the integrity of your infrastructure.

What's included

9 videos1 reading2 assignments

Instructor

Packt - Course Instructors
Packt
617 Courses98,656 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.

Coursera Plus

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