I learned that the Terraform REPL feature is available with terraform console, so I’ll share this information.
I wanted to check the behavior of the Terraform regex function, so I tried using the Terraform REPL feature terraform console.
Here’s an example of using terraform console.
$ terraform console
> can(regex("@example.com", "test@example.com"))
true
> can(regex("@example.com", "test@sub.example.com"))
false
That’s all from the Gemba, where I tried using the Terraform REPL feature terraform console.