Troubleshooting Terraform Environments

Lab Steps

lock
Configure Terraform AWS Credentials
lock
Configuring Logs in Terraform
lock
Creating Custom Validation in Terraform
lock
Forcing Re-creation of Terraform Resources

Ready for the real environment experience?

DifficultyBeginner
Time Limit45m
Students30
Ratings
5/5
starstarstarstarstar

Description

As an application grows, Terraform developers can ensure their reusable templates are being used properly by incorporating custom validation on resource attributes. As the infrastructure is deployed and configured further, enabling logs can provide additional warnings or tracebacks to help pinpoint the root of a particular issue.

In this lab, you will enable logging in Terraform and learn the various log levels available for debugging. You will also employ the Terraform replace option to force a resource replacement for any misconfigured or misaligned cloud resources.

Learning Objectives

Upon completion of this beginner-level lab, you will be able to:

  • Identify and configure logs for Terraform troubleshooting
  • Validate Terraform variables
  • Replace misconfigured AWS resources

Intended Audience

  • Cloud Architects
  • DevOps Engineers
  • Software Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • Terraform Logging
  • Troubleshooting Terraform applications

The following content can be used to fulfill the prerequisite:

About the Author
Students22997
Labs74
Learning paths3

Jun is a Cloud Labs Developer with previous experience as a Software Engineer and Cloud Developer. He holds the AWS Certified Solutions Architect and DevOps Engineer Professional certifications. He also holds the AWS Certified Solutions Architect, Developer, and SysOps Administrator Associate certifications. 

Jun is focused on giving back to the growing cloud community by sharing his knowledge and experience with students and creating engaging content. 

Covered Topics