As companies start to build infrastructure using Terraform, the logic required to build self-service automation becomes complex. That's why HCL (HashiCorp Configuration Language) contains expressions that can perform calculations within Terraform configurations. Integrating conditional logic into modules allows them to become dynamic and reusable for different scenarios.
In this lab, you will create an EC2 Module that contains conditional logic for deploying an EC2 Instance.
Upon completion of this lab, you will be able to:
You should be familiar with:
The following course and lab can be used to fulfill the prerequisites:
December 22nd, 2023 - Lab updated to utilize CodeTour IDE
April 24th, 2023 - Resolved IDE delay