mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-26 01:34:00 -04:00
* Update HCL variable documentation * Add supported arguments section for variables * Add inpage links to key variable arguments * Reorder content to cluster assignment documentation together * Split variable definitions into two sub-sections Co-authored-by: Lucas Bajolet <[email protected]>
27 lines
476 B
Plaintext
27 lines
476 B
Plaintext
### Suppressing Sensitive Variables
|
|
|
|
[inpage-sensitive]: #suppressing-sensitive-variables
|
|
|
|
|
|
When a variable is sensitive all string-values from that variable will be
|
|
obfuscated from Packer's output :
|
|
|
|
```hcl
|
|
# var-foo.pkr.hcl
|
|
variable "foo" {
|
|
sensitive = true
|
|
default = {
|
|
key = "SECR3TP4SSW0RD"
|
|
}
|
|
}
|
|
```
|
|
|
|
```shell-session
|
|
$ packer inspect var-foo.pkr.hcl
|
|
Packer Inspect: HCL2 mode
|
|
|
|
> input-variables:
|
|
var.foo: "{\n \"key\" = \"<sensitive>\"\n }"
|
|
...
|
|
```
|