29
22

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Terraformのログ出したい

Posted at

なんかドキュメントになくてどうやってんだろと思ってたら、ここにあった。環境変数設定したら出せるらしい。

export TF_LOG=1
export TF_LOG_PATH='./terraform.log'

hashicorpさんプロダクトはこの形式が多いな。

ログの例

$ cat terraform.log
2015/02/24 14:57:41 [INFO] Terraform version: 0.3.6
2015/02/24 14:57:41 Detected home directory from env var: /Users/akuwano
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: atlas = /Users/akuwano/homebrew/bin/terraform-provider-atlas
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: aws = /Users/akuwano/homebrew/bin/terraform-provider-aws
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: cloudflare = /Users/akuwano/homebrew/bin/terraform-provider-cloudflare
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: cloudstack = /Users/akuwano/homebrew/bin/terraform-provider-cloudstack
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: consul = /Users/akuwano/homebrew/bin/terraform-provider-consul
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: digitalocean = /Users/akuwano/homebrew/bin/terraform-provider-digitalocean
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: dnsimple = /Users/akuwano/homebrew/bin/terraform-provider-dnsimple
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: google = /Users/akuwano/homebrew/bin/terraform-provider-google
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: heroku = /Users/akuwano/homebrew/bin/terraform-provider-heroku
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: mailgun = /Users/akuwano/homebrew/bin/terraform-provider-mailgun
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: null = /Users/akuwano/homebrew/bin/terraform-provider-null
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: file = /Users/akuwano/homebrew/bin/terraform-provisioner-file
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: local-exec = /Users/akuwano/homebrew/bin/terraform-provisioner-local-exec
2015/02/24 14:57:41 [DEBUG] Discoverd plugin: remote-exec = /Users/akuwano/homebrew/bin/terraform-provisioner-remote-exec
2015/02/24 14:57:41 Detected home directory from env var: /Users/akuwano
(snip)
29
22
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
29
22

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?