Documentation ¶
Index ¶
- func CheckTerraformFile(deployConfig types.DeployConfig, prevTerraformFileContents []byte) error
- 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 ReadTerraformFile(deployConfig types.DeployConfig) ([]byte, 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 CheckTerraformFile ¶ added in v0.27.0
func CheckTerraformFile(deployConfig types.DeployConfig, prevTerraformFileContents []byte) error
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 types.DeployConfig, 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 GenerateFile ¶
func GenerateFile(deployConfig types.DeployConfig, imagesMap map[string]string) error
GenerateFile generates the main terraform file given application and service configuration
func ReadTerraformFile ¶ added in v0.27.0
func ReadTerraformFile(deployConfig types.DeployConfig) ([]byte, error)
ReadTerraformFile reads the contents of the main terraform file
func RenderTemplates ¶
RenderTemplates renders a Terraform template
func RunApply ¶
func RunApply(deployConfig types.DeployConfig, secrets types.Secrets, imagesMap map[string]string) 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, imagesMap map[string]string) 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.