Using Terraform’s try() ,can(), and input validation

Karl Cardenas
Level Up Coding
Published in
6 min readMar 7, 2020

--

Photo by Cesar Carlevarino Aragon on Unsplash

HashiCorp has added two new tools in Terraform. As of Terraform v.12.20 there are two new functions available for consumers try() and can(). Along with these two functions, there is an experimental feature available, variable_validation. In this article, we’re going to look into how these new functions are used and how they works.

--

--

is a Software Developer with a passion in automation and teaching others the art of "DevOps". https://crazykarlcodes.dev