terraform

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2018 License: Apache-2.0 Imports: 7 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"

	// VarFileName is the default name for Terraform var file.
	VarFileName string = "terraform.tfvars"
)

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.

Directories

Path Synopsis
Package exec is glue between the vendored terraform codebase and installer.
Package exec is glue between the vendored terraform codebase and installer.

Jump to

Keyboard shortcuts

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