Files
Wilken RiveraandLucas Bajolet bc55d6d2d6 [HPR-763] Update HCL variable documentation (#12058)
* 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]>
2022-10-24 20:58:32 -04:00

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 }"
...
```