terraform

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTerraformFile added in v0.27.0

func CheckTerraformFile(deployConfig types.DeployConfig, prevTerraformFileContents []byte) error

CheckTerraformFile makes sure that the generated terraform file hasn't changed from the previous one It returns an error if they differ. Used for deploying from CI servers

func CompileVarFlags

func CompileVarFlags(deployConfig types.DeployConfig, secrets types.Secrets, imagesMap map[string]string) ([]string, error)

CompileVarFlags compiles the variable flags passed into a Terraform command

func Generate

func Generate(deployConfig types.DeployConfig, imagesMap map[string]string) (string, error)

Generate generates the contents of the main terraform file given application and service configuration

func GenerateFile

func GenerateFile(deployConfig types.DeployConfig, imagesMap map[string]string) error

GenerateFile generates the main terraform file given application and service configuration

func ReadTerraformFile added in v0.27.0

func ReadTerraformFile(deployConfig types.DeployConfig) ([]byte, error)

ReadTerraformFile reads the contents of the main terraform file

func RenderTemplates

func RenderTemplates(templateName string, varsMap map[string]string) (string, error)

RenderTemplates renders a Terraform template

func RunApply

func RunApply(deployConfig types.DeployConfig, secrets types.Secrets, imagesMap map[string]string) error

RunApply runs the 'terraform apply' command and passes variables in as command flags

func RunInit

func RunInit(deployConfig types.DeployConfig) error

RunInit runs the 'terraform init' command and force copies the remote state

func RunPlan

func RunPlan(deployConfig types.DeployConfig, secrets types.Secrets, imagesMap map[string]string) error

RunPlan runs the 'terraform plan' command and passes variables in as flags

func WriteTerraformFile

func WriteTerraformFile(data string, terraformDir string) error

WriteTerraformFile writes the main Terraform file to the given path

Types

This section is empty.

Jump to

Keyboard shortcuts

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