Terraform Context
Onofficiรซle Beta-vertaling
Deze pagina is vertaald door PageTurner AI (beta). Niet officieel goedgekeurd door het project. Een fout gevonden? Probleem melden โ
Watโ
Toont de naam van de momenteel actieve Terraform-workspace.
Voorbeeldconfiguratieโ
- 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}}"
Optiesโ
| Name | Type | Default | Description |
|---|---|---|---|
fetch_version | boolean | false | fetch the version information from versions.tf, main.tf or terraform.tfstate |
command | string | terraform | the command(s) to run, allows support for tofu |
Template (informatie)โ
standaard template
{{ .WorkspaceName }}{{ if .Version }} {{ .Version }}{{ end }}
Eigenschappenโ
| Name | Type | Description |
|---|---|---|
.WorkspaceName | string | is the current workspace name |
.Version | string | terraform version (set fetch_version to true) |