funcTerraformInit()error{params:=[]string{"-chdir="+terraformDir}params=append(params,"init")params=append(params,"-input=false")params=append(params,"-var","config_import="+config_import+".yml")// Backend location configuration only changes during the init phase, so you do not need to provide this to each command thereafter
// https://github.com/hashicorp/terraform/pull/20428#issuecomment-470674564
params=append(params,"-backend-config=./"+config_import+".tfvars")fmt.Println("starting terraform init")err:=sh.RunV("terraform",params...)iferr!=nil{returnerr}returnnil}
Once terraform was initialized, it could be planned.
Webmentions
(No webmentions yet.)