Small doc updates (#12165)

Changed the comment about configuring the provider

Replaced the `data` example, with a correct `resource` example.
This commit is contained in:
seph 2017-03-07 04:50:57 -08:00 committed by Paul Stack
parent 0b868099b0
commit 0801f38fce
1 changed files with 13 additions and 3 deletions

View File

@ -129,13 +129,23 @@ The `client_auth` configuration block accepts the following arguments:
```
provider "vault" {
# It is strongly recommended to configure this provider through the
# environment variables described below, so that each user can have
# environment variables described above, so that each user can have
# separate credentials set in the environment.
address = "https://vault.example.net:8200"
#
# This will default to using $VAULT_ADDR
# But can be set explicitly
# address = "https://vault.example.net:8200"
}
data "vault_generic_secret" "example" {
resource "vault_generic_secret" "example" {
path = "secret/foo"
data_json = <<EOT
{
"foo": "bar",
"pizza": "cheese"
}
EOT
}
```