Documentation ¶
Index ¶
Constants ¶
const ( ErrorPrefix = "e:" OutputPrefix = "o:" )
const (
// EnvCLI is the environment variable name to set additional CLI args.
EnvCLI = "TF_CLI_ARGS"
)
const Version = terraform.Version
Variables ¶
var Commands map[string]cli.CommandFactory
Commands is the mapping of all the available Terraform commands.
var GitCommit string
The git commit that was compiled. This will be filled in by the compiler.
var PluginOverrides command.PluginOverrides
PluginOverrides are paths that override discovered plugins, set from the config file.
var PlumbingCommands map[string]struct{}
var Ui cli.Ui
Ui is the cli.Ui used for communicating to the outside world.
var VersionPrerelease = terraform.VersionPrerelease
Functions ¶
func ConfigFile ¶
ConfigFile returns the default path to the configuration file.
On Unix-like systems this is the ".terraformrc" file in the home directory. On Windows, this is the "terraform.rc" file in the application data directory.
func HackedMain ¶
Types ¶
type Config ¶
type Config struct { Providers map[string]string Provisioners map[string]string DisableCheckpoint bool `hcl:"disable_checkpoint"` DisableCheckpointSignature bool `hcl:"disable_checkpoint_signature"` }
Config is the structure of the configuration for the Terraform CLI.
This is not the configuration for Terraform itself. That is in the "config" package.
var BuiltinConfig Config
BuiltinConfig is the built-in defaults for the configuration. These can be overridden by user configurations.
func LoadConfig ¶
LoadConfig loads the CLI configuration from ".terraformrc" files.