Skip to content

Commit

Permalink
Add instructions for using sensitive values
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlojau committed Sep 26, 2021
1 parent abd59f1 commit e70a998
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,14 @@ build {
}
```

**NOTE:** Packer does not seem to support sensitive values from custom data sources yet. If you are passing the variables to provisioners and wish to keep them sensitive, you can create a sensitive local.

```hcl
local "my_secret_password" {
expression = "${data.mock-data.fields.password}"
sensitive = true
}
```

## Packer Compatibility
This template is compatible with Packer >= v1.7.0

0 comments on commit e70a998

Please sign in to comment.