Skip to content

Sedicii/terraform-provider-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Debug Terraform Provider

This Terraform provides allows to log text or data structures to a file for debug purposes.

Maintainers

This provider plugin is maintained by Sedicii.

Requirements

  • Terraform 0.10.x
  • Go 1.8 (to build the provider plugin)

Installation

curl https://raw.githubusercontent.com/Sedicii/terraform-provider-debug/master/scripts/install-debug-tf-pluging.sh | bash

Usage

provider "debug" {
  log_file = "<path to log file>" // Default to "/tmp/tf-debug-provider.log"
}

locals {
    data = {
        test = 1
        bla = "test"
    }
}

data "debug_log" "log" {
   line = "bla value is ${local.data.bla}" // type string, for log lines
   data = "${local.data}"  // type map, for data structures
   tag = "some_tag" // will appear in the log line. Default to "default"
}