From 14bcd13cef4dbbbec6c2f33c926f60cdd98294fd Mon Sep 17 00:00:00 2001 From: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com> Date: Wed, 17 Oct 2018 15:35:15 +0100 Subject: [PATCH] Update dynamic-secrets.html.md (#5530) 1. Using the current tutorial will return a warning after creating the role "my-role: ```bash WARNING! The following warnings were returned from Vault: * Detected use of legacy role or policy parameter. Please upgrade to use the new parameters. ``` To fix this we need to update the command and the query. Correct entries can be found in documentation for the [AWS Engine](https://www.vaultproject.io/docs/secrets/aws/index.html). 2. `vault revoke` to `vault lease revoke`. The command bellow is updated, but the text above it was not. --- .../getting-started/dynamic-secrets.html.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/website/source/intro/getting-started/dynamic-secrets.html.md b/website/source/intro/getting-started/dynamic-secrets.html.md index c6970313db..fa92514e1d 100644 --- a/website/source/intro/getting-started/dynamic-secrets.html.md +++ b/website/source/intro/getting-started/dynamic-secrets.html.md @@ -77,14 +77,9 @@ is okay - just use this one for now. "Version": "2012-10-17", "Statement": [ { - "Sid": "Stmt1426528957000", "Effect": "Allow", - "Action": [ - "ec2:*" - ], - "Resource": [ - "*" - ] + "Action": "ec2:*", + "Resource": "*" } ] } @@ -94,19 +89,16 @@ As mentioned above, we need to map this policy document to a named role. To do that, write to `aws/roles/:name`: ```text -$ vault write aws/roles/my-role policy=-<