terraform

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const TerraformModulesRef = "fc9af4a1"

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 GenerateCheck added in v0.32.0

func GenerateCheck(deployConfig deploy.Config) error

GenerateCheck validates that the generated terraform file is up to date

func GenerateFiles added in v0.37.0

func GenerateFiles(deployConfig deploy.Config) error

GenerateFiles generates the main terraform file given application and service configuration

func GenerateInfrastructure added in v0.37.0

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

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

func GenerateInfrastructureVarFile added in v0.37.0

func GenerateInfrastructureVarFile(deployConfig deploy.Config, secrets types.Secrets) error

GenerateInfrastructureVarFile compiles the variable flags passed into a Terraform command

func GenerateServices added in v0.37.0

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

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

func GenerateServicesVarFile added in v0.37.0

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

GenerateServicesVarFile compiles the variable flags passed into a Terraform command

func GetInfrastructureVarMap added in v0.37.0

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

GetInfrastructureVarMap compiles the variables passed into 'terraform apply' for services

func GetServicesVarMap added in v0.37.0

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

GetServicesVarMap compiles the variables passed into 'terraform apply' for services

func ReadTerraformFile added in v0.27.0

func ReadTerraformFile(terraformDir string) ([]byte, error)

ReadTerraformFile reads the contents of the main terraform file

func RenderRemoteTemplates added in v0.33.3

func RenderRemoteTemplates(dependencyType string, templateConfig map[string]string) (string, error)

RenderRemoteTemplates renders a Terraform template

func RenderTemplates

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

RenderTemplates renders a Terraform template

func RunApply

func RunApply(deployConfig deploy.Config, terraformDir string, autoApprove bool) error

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

func RunInit

func RunInit(deployConfig deploy.Config, terraformDir string) error

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

func WriteToNestedTerraformDir added in v0.37.0

func WriteToNestedTerraformDir(data, fileName, nestedTerraformDir string) error

WriteToNestedTerraformDir writes data to the terraform dir

Types

This section is empty.

Jump to

Keyboard shortcuts

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