Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 952 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 952 Bytes

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"
}