Documentation
¶
Index ¶
- Constants
- func CheckTerraformFile(deployConfig deploy.Config, prevTerraformFileContents []byte) error
- func CompileVarFlags(deployConfig deploy.Config, secrets types.Secrets, imagesMap map[string]string) ([]string, error)
- func Generate(deployConfig deploy.Config) (string, error)
- func GenerateCheck(deployConfig deploy.Config) error
- func GenerateFile(deployConfig deploy.Config) error
- func ReadTerraformFile(deployConfig deploy.Config) ([]byte, error)
- func RenderTemplates(templateName string, varsMap map[string]string) (string, error)
- func RunApply(deployConfig deploy.Config, secrets types.Secrets, imagesMap map[string]string, ...) error
- func RunInit(deployConfig deploy.Config) error
- func WriteTerraformFile(data string, terraformDir string) error
Constants ¶
const TerraformImage = "hashicorp/terraform"
TerraformImage is the name of the terraform docker image we run commands in
const TerraformModulesRef = "272193d7"
TerraformModulesRef is the git commit hash of the Terraform modules in Originate/exosphere we are using
const TerraformVersion = "0.11.0"
TerraformVersion is the currently supported version of terraform
Variables ¶
This section is empty.
Functions ¶
func CheckTerraformFile ¶ added in v0.27.0
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 deploy.Config, secrets types.Secrets, imagesMap map[string]string) ([]string, error)
CompileVarFlags compiles the variable flags passed into a Terraform command
func Generate ¶
Generate generates the contents of the main terraform file given application and service configuration
func GenerateCheck ¶ added in v0.32.0
GenerateCheck validates that the generated terraform file is up to date
func GenerateFile ¶
GenerateFile generates the main terraform file given application and service configuration
func ReadTerraformFile ¶ added in v0.27.0
ReadTerraformFile reads the contents of the main terraform file
func RenderTemplates ¶
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 WriteTerraformFile ¶
WriteTerraformFile writes the main Terraform file to the given path
Types ¶
This section is empty.