Documentation
¶
Index ¶
- Constants
- func Generate(deployConfig deploy.Config) (string, error)
- func GenerateCheck(deployConfig deploy.Config) error
- func GenerateFile(deployConfig deploy.Config) error
- func GenerateVarFile(deployConfig deploy.Config, secrets types.Secrets, imagesMap map[string]string) error
- func GetVarMap(deployConfig deploy.Config, secrets types.Secrets, imagesMap map[string]string) (map[string]string, error)
- func ReadTerraformFile(deployConfig deploy.Config) ([]byte, error)
- func RenderRemoteTemplates(dependencyType string, templateConfig map[string]string) (string, 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 WriteToTerraformDir(data, fileName, terraformDir string) error
Constants ¶
const TerraformModulesRef = "30894145"
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 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 GenerateVarFile ¶ added in v0.35.0
func GenerateVarFile(deployConfig deploy.Config, secrets types.Secrets, imagesMap map[string]string) error
GenerateVarFile compiles the variable flags passed into a Terraform command
func GetVarMap ¶ added in v0.33.3
func GetVarMap(deployConfig deploy.Config, secrets types.Secrets, imagesMap map[string]string) (map[string]string, error)
GetVarMap compiles the variables passed into a Terraform command
func ReadTerraformFile ¶ added in v0.27.0
ReadTerraformFile reads the contents of the main terraform file
func RenderRemoteTemplates ¶ added in v0.33.3
RenderRemoteTemplates renders a Terraform template
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 WriteToTerraformDir ¶ added in v0.35.0
WriteToTerraformDir writes data to the terraform dir
Types ¶
This section is empty.