Documentation ¶
Index ¶
- Constants
- func GenerateCheck(deployConfig deploy.Config) error
- func GenerateFiles(deployConfig deploy.Config) error
- func GenerateInfrastructure(deployConfig deploy.Config) (string, error)
- func GenerateInfrastructureVarFile(deployConfig deploy.Config, secrets types.Secrets) error
- func GenerateServices(deployConfig deploy.Config) (string, error)
- func GenerateServicesVarFile(deployConfig deploy.Config, secrets types.Secrets, ...) error
- func GetInfrastructureVarMap(deployConfig deploy.Config, secrets types.Secrets) (map[string]string, error)
- func GetServicesVarMap(deployConfig deploy.Config, secrets types.Secrets, ...) (map[string]string, error)
- func ReadTerraformFile(terraformDir string) ([]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, terraformDir string, autoApprove bool) error
- func RunInit(deployConfig deploy.Config, terraformDir string) error
- func WriteToNestedTerraformDir(data, fileName, nestedTerraformDir string) error
Constants ¶
const TerraformModulesRef = "fc9af4a1"
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 GenerateCheck ¶ added in v0.32.0
GenerateCheck validates that the generated terraform file is up to date
func GenerateFiles ¶ added in v0.37.0
GenerateFiles generates the main terraform file given application and service configuration
func GenerateInfrastructure ¶ added in v0.37.0
GenerateInfrastructure generates the contents of the main terraform file given application and service configuration
func GenerateInfrastructureVarFile ¶ added in v0.37.0
GenerateInfrastructureVarFile compiles the variable flags passed into a Terraform command
func GenerateServices ¶ added in v0.37.0
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
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 ¶
RunApply runs the 'terraform apply' command and passes variables in as command flags
func WriteToNestedTerraformDir ¶ added in v0.37.0
WriteToNestedTerraformDir writes data to the terraform dir
Types ¶
This section is empty.