Terraform Context
What
Display the currently active Terraform Workspace name.
Sample Configuration
- json
- yaml
- toml
{
"type": "terraform",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#ebcc34",
"template": "{{.WorkspaceName}}"
}
type: terraform
style: powerline
powerline_symbol:
foreground: "#000000"
background: "#ebcc34"
template: "{{.WorkspaceName}}"
type = "terraform"
style = "powerline"
powerline_symbol = ""
foreground = "#000000"
background = "#ebcc34"
template = "{{.WorkspaceName}}"
Properties
Name | Type | Default | Description |
---|---|---|---|
fetch_version | boolean | false | fetch the version information from versions.tf , main.tf or terraform.tfstate |
Template (info)
default template
{{ .WorkspaceName }}{{ if .Version }} {{ .Version }}{{ end }}
Properties
Name | Type | Description |
---|---|---|
.WorkspaceName | string | is the current workspace name |
.Version | string | terraform version (set fetch_version to true ) |