Home / Companies / HashiCorp / Blog / Post Details
Content Deep Dive

Simplifying assertions in Terraform using provider-defined functions

Blog post from HashiCorp

Post Details
Company
Date Published
Author
Bruno Schaatsbergen
Word Count
1,484
Language
English
Hacker News Points
-
Summary

This post discusses strategies for assertions and validations using a custom Terraform provider, Assert. The Assert provider offers a rich set of assertion capabilities through provider-defined functions such as http_success(), expired(), and between(). These assertion functions simplify your Terraform configurations, making it easier to do variable validation, continuous validation, and testing. It also covers how to use these functions to validate input variables and other Terraform features that can make your configuration more robust. Additionally, the post explores continuous validation in HCP Terraform, which allows for proactive monitoring of workspace configurations or modules with assertions.