Documentation
¶
Index ¶
- func CompileVarFlags(deployConfig types.DeployConfig, secrets types.Secrets) ([]string, error)
- func Generate(deployConfig types.DeployConfig, imagesMap map[string]string) (string, error)
- func GenerateFile(deployConfig types.DeployConfig, imagesMap map[string]string) error
- func RenderTemplates(templateName string, varsMap map[string]string) (string, error)
- func RunApply(deployConfig types.DeployConfig, secrets types.Secrets) error
- func RunInit(deployConfig types.DeployConfig) error
- func RunPlan(deployConfig types.DeployConfig, secrets types.Secrets) error
- func WriteTerraformFile(data string, terraformDir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileVarFlags ¶
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 GenerateFile ¶
func GenerateFile(deployConfig types.DeployConfig, imagesMap map[string]string) error
GenerateFile generates the main terraform file given application and service configuration
func RenderTemplates ¶
RenderTemplates renders a Terraform template
func RunApply ¶
func RunApply(deployConfig types.DeployConfig, secrets types.Secrets) error
RunApply runs the 'terraform apply' command and passes variables in as command flags
func RunInit ¶
func RunInit(deployConfig types.DeployConfig) error
RunInit runs the 'terraform init' command and force copies the remote state
func RunPlan ¶
func RunPlan(deployConfig types.DeployConfig, secrets types.Secrets) error
RunPlan runs the 'terraform plan' command and passes variables in as flags
func WriteTerraformFile ¶
WriteTerraformFile writes the main Terraform file to the given path
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.