Terraform REPL 機能は terraform console で利用できる
- 2022 7/19
- カテゴリー : Infrastructure
- Terraform
- コメントを書く
Terraform REPL 機能は terraform console
で利用できるということを知ったので、ご紹介します。
背景 Terraform REPL 機能を使いたい
Terraform regex
関数の挙動を確認したく、Terraform REPL 機能 terraform console
を利用してみました。
terraform console
terraform console
を利用してみた例です。
$ terraform console
> can(regex("@example.com", "[email protected]"))
true
> can(regex("@example.com", "[email protected]"))
false
以上、Terraform REPL 機能 terraform console
を使ってみた、現場からお送りしました。
参考情報
- Command: console | Terraform by HashiCorp
- can – Functions – Configuration Language | Terraform by HashiCorp
- regex – Functions – Configuration Language | Terraform by HashiCorp