Documentation

Overview

    Package terraform provides a function to read Terraform output.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func ReadOutput

    func ReadOutput(dir string) (map[string]Output, error)

      ReadOutput runs `terraform output` on the given directory and returns the parsed result.

      Types

      type Output

      type Output struct {
      	Type      string      `json:"type"` // one of "string", "list", or "map"
      	Sensitive bool        `json:"sensitive"`
      	Value     interface{} `json:"value"`
      }

        Output describes a single output value.

        Source Files