From 215b89d36322101fd58d504817688e90ecd5da8e Mon Sep 17 00:00:00 2001 From: Tavis Wilson Date: Wed, 16 May 2018 14:35:30 -0500 Subject: [PATCH 1/2] Update policies.html.md --- website/source/docs/concepts/policies.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/concepts/policies.html.md b/website/source/docs/concepts/policies.html.md index fb7097a0f9..411ad20b74 100644 --- a/website/source/docs/concepts/policies.html.md +++ b/website/source/docs/concepts/policies.html.md @@ -496,7 +496,7 @@ Policies may be created (uploaded) via the CLI or via the API. To create a new policy in Vault: ```sh -$ vault write sys/policy/my-policy policy=@my-policy.hcl +$ vault policy-write policy-name policy-file.hcl ``` -> The `@` tells Vault to read from a file on disk. In the example above, Vault From 15a365c76fa7f0b239f0a2f6a963a64eeee3915e Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Thu, 17 May 2018 09:14:12 -0700 Subject: [PATCH 2/2] Updated for new syntax --- website/source/docs/concepts/policies.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/concepts/policies.html.md b/website/source/docs/concepts/policies.html.md index 411ad20b74..e8670ad66b 100644 --- a/website/source/docs/concepts/policies.html.md +++ b/website/source/docs/concepts/policies.html.md @@ -496,7 +496,7 @@ Policies may be created (uploaded) via the CLI or via the API. To create a new policy in Vault: ```sh -$ vault policy-write policy-name policy-file.hcl +$ vault policy write policy-name policy-file.hcl ``` -> The `@` tells Vault to read from a file on disk. In the example above, Vault