From 55da6be9f2aba50de2cda19c084bfb22b1065bcc Mon Sep 17 00:00:00 2001 From: seph Date: Tue, 7 Mar 2017 04:50:57 -0800 Subject: [PATCH] Small doc updates (#12165) Changed the comment about configuring the provider Replaced the `data` example, with a correct `resource` example. --- .../docs/providers/vault/index.html.markdown | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/website/source/docs/providers/vault/index.html.markdown b/website/source/docs/providers/vault/index.html.markdown index 09e670b64908..69581cd8de5a 100644 --- a/website/source/docs/providers/vault/index.html.markdown +++ b/website/source/docs/providers/vault/index.html.markdown @@ -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 = <