gocloud.devgocloud.dev/internal/testing/terraform Index | Files

package terraform

import "gocloud.dev/internal/testing/terraform"

Package terraform provides a function to read Terraform output.

Index

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

terraform.go

Version
v0.37.0
Published
Mar 12, 2024
Platform
js/wasm
Imports
3 packages
Last checked
8 hours ago

Tools for package owners.