Highlight: Terraform Associate Exam Prep | Creating Reusable Infrastructure with Terraform Modules
Creating Reusable Infrastructure with Terraform Modules
Description
Modules are a critical component of production-grade Terraform configurations. It gives infrastructure developers the ability to split infrastructure services into separate components. For example, you can have a module for deploying EC2 Instances and a module for deploying VPCs. You can then use each module as a building block for creating entire environments in AWS.
Terraform configuration files that are thousands of lines of code are considered an anti-pattern. Infrastructure code becomes unmanageable, and execution plans can take over 10 minutes to create. Instead, split the code up into modules. Modules separate pieces of the infrastructure into reusable, testable units.
Modules also provide a way for the community to share Terraform configurations with others. There are hundreds of modules on the Terraform Registry. It is highly recommended to look at the community-made modules before creating your own from scratch. The State of DevOps report shows that companies that reuse code are high performers.
In this lab, you will learn how to create reusable Terraform configurations using modules.
Lab Objectives
Upon completion of this Lab you will be able to:
Understand how to use modules to create reusable infrastructure
Know the benefits of using modules
Learn how to pass data between modules
Lab Prerequisites
You should be familiar with:
Basic concepts of Cloud Service Providers
Fundamental understanding of DevOps
Deploying resources with Terraform and using variables
Terraform Associate 003 Certification Exam Preparation
[https://platform.qa.com/learning-paths/terraform-associate-certification-exam-preparation-1-2814/?program=53dd1bdb-710b-4f91-a87e-42e55209738e](https://platform.qa.com/learning-paths/terraform-associate-certification-exam-preparation-1-2814/?program=53dd1bdb-710b-4f91-a87e-42e55209738e) -- Watch live at https://www.twitch.tv/msec