Contexto de Terraform
Traducción Beta No Oficial
Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →
Qué hace
Muestra el nombre del espacio de trabajo activo actual de Terraform.
Configuración de ejemplo
- 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}}"
Opciones
| 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 |
Plantilla (info)
plantilla predeterminada
{{ .WorkspaceName }}{{ if .Version }} {{ .Version }}{{ end }}
Propiedades
| Name | Type | Description |
|---|---|---|
.WorkspaceName | string | is the current workspace name |
.Version | string | terraform version (set fetch_version to true) |