terraform

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package terraform contains the utilities that's used for invoking terraform executable under the given directory with the given templates.

Index

Constants

View Source
const (
	// StateFileName is the default name for Terraform state files.
	StateFileName string = "terraform.tfstate"
)

Variables

This section is empty.

Functions

func Apply

func Apply(dir string, platform string, extraArgs ...string) (path string, err error)

Apply unpacks the platform-specific Terraform modules into the given directory and then runs 'terraform init' and 'terraform apply'. It returns the absolute path of the tfstate file, rooted in the specified directory, along with any errors from Terraform.

func Destroy added in v0.3.0

func Destroy(dir string, platform string, extraArgs ...string) (err error)

Destroy unpacks the platform-specific Terraform modules into the given directory and then runs 'terraform init' and 'terraform destroy'.

func Version added in v0.2.0

func Version() (version string, err error)

Version gets the output of 'terrraform version'.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL