Skip to content

Commit

Permalink
Small doc updates (#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 stack72 committed Mar 7, 2017
1 parent 957303d commit ef38e48
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 @@ -127,13 +127,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 ef38e48

Please sign in to comment.