diff --git a/builtin/credential/aws-ec2/path_login.go b/builtin/credential/aws-ec2/path_login.go index 28eb2abe5b..8bf23d7b8d 100644 --- a/builtin/credential/aws-ec2/path_login.go +++ b/builtin/credential/aws-ec2/path_login.go @@ -57,7 +57,9 @@ on either the role or the role tag, the 'nonce' holds no significance.`, "identity": { Type: framework.TypeString, Description: `Base64 encoded EC2 instance identity document. This needs to be supplied along -with 'signature' parameter.`, +with the 'signature' parameter. If using 'curl' for fetching the identity +document, consider using the option '-w 0' while piping the output to 'base64' +binary.`, }, "signature": { Type: framework.TypeString, diff --git a/website/source/docs/auth/aws-ec2.html.md b/website/source/docs/auth/aws-ec2.html.md index 8eedef90fe..6905e2cebb 100644 --- a/website/source/docs/auth/aws-ec2.html.md +++ b/website/source/docs/auth/aws-ec2.html.md @@ -324,8 +324,7 @@ curl -X POST -H "x-vault-token:123" "http://127.0.0.1:8200/v1/auth/aws-ec2/role/ ``` curl -X POST "http://127.0.0.1:8200/v1/auth/aws-ec2/login" -d -'{"role":"dev-role","pkcs7":"'$(curl -s -http://169.254.169.254/latest/dynamic/instance-identity/pkcs7 | tr -d '\n')'","nonce":"5defbf9e-a8f9-3063-bdfc-54b7a42a1f95"}' +'{"role":"dev-role","pkcs7":"'$(curl -s http://169.254.169.254/latest/dynamic/instance-identity/pkcs7 | tr -d '\n')'","nonce":"5defbf9e-a8f9-3063-bdfc-54b7a42a1f95"}' ``` @@ -486,8 +485,11 @@ The response will be in JSON. For example: