Terraform REPL Feature Available with terraform console

Tadashi Shigeoka ·  Tue, July 19, 2022

I learned that the Terraform REPL feature is available with terraform console, so I’ll share this information.

Terraform | テラフォーム

Background: Wanted to Use Terraform REPL Feature

I wanted to check the behavior of the Terraform regex function, so I tried using the Terraform REPL feature terraform console.

`terraform console`

Here’s an example of using terraform console.

$ terraform console

> can(regex("@example.com", "[email protected]"))
true

> can(regex("@example.com", "[email protected]"))
false

That’s all from the Gemba, where I tried using the Terraform REPL feature terraform console.

Reference Information