terraform

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const TerraformImage = "hashicorp/terraform"

TerraformImage is the name of the terraform docker image we run commands in

View Source
const TerraformModulesRef = "272193d7"

TerraformModulesRef is the git commit hash of the Terraform modules in Originate/exosphere we are using

View Source
const TerraformVersion = "0.11.0"

TerraformVersion is the currently supported version of terraform

Variables

This section is empty.

Functions

func CompileVarFlags

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

CompileVarFlags compiles the variable flags passed into a Terraform command

func Generate

func Generate(deployConfig deploy.Config) (string, error)

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

func GenerateCheck added in v0.32.0

func GenerateCheck(deployConfig deploy.Config) error

GenerateCheck validates that the generated terraform file is up to date

func GenerateFile

func GenerateFile(deployConfig deploy.Config) error

GenerateFile generates the main terraform file given application and service configuration

func ReadTerraformFile added in v0.27.0

func ReadTerraformFile(deployConfig deploy.Config) ([]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 deploy.Config, secrets types.Secrets, imagesMap map[string]string, autoApprove bool) error

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

func RunInit

func RunInit(deployConfig deploy.Config) error

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

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