vault auth enable aws -address=myIP

8 views
Skip to first unread message

lrod...@gmail.com

unread,
Aug 29, 2018, 11:28:54 AM8/29/18
to Vault
Is there any way this could be done?

`vault auth enable aws -address=myIP`

When I try `vault auth list -address=myIP` I am successful, but when I try to enable aws, I get an error stating too many arguments were provided. I am simply attempting to enable aws on a vault instance that is not on my local host, but in another IP.

I have tried defining the environment variable VAULT_ADDR but it doesn't seems to be working.

Thanks for your time!

Chris Hoffman

unread,
Aug 29, 2018, 11:34:49 AM8/29/18
to Vault
Order matters here because there is a subcommand (`auth enable`) and parameters.  You need to provide the address global param for subcommand after the subcommand.  Everything else is treated as parameters.

`vault auth enable -address=myIP aws` should do the trick.

Chris
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/4e0d5232-953e-4433-a3d5-40e9b3083160%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lrod...@gmail.com

unread,
Aug 29, 2018, 11:38:24 AM8/29/18
to Vault
You just saved me. Thank you
Reply all
Reply to author
Forward
0 new messages