Skip to content

Commit

Permalink
Small doc updates (hashicorp#12165)
Browse files Browse the repository at this point in the history
Changed the comment about configuring the provider

Replaced the `data` example, with a correct `resource` example.
  • Loading branch information
directionless authored and Yann DEGAT committed Mar 13, 2017
1 parent dfc159e commit 539761b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions website/source/docs/providers/vault/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```

0 comments on commit 539761b

Please sign in to comment.