You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to authenticate via the aws_iam method, using a slightly altered example from this code's inline comments:
# VAULT_ADDR set in env
irb(main):008:0> vault_token = Vault.auth.aws_iam(role="my_role", credentials_provider=Aws::InstanceProfileCredentials.new, route="my_route")
Vault::MissingTokenError: Missing Vault token! I cannot make requests to Vault without a token. Please
set a Vault token in the client:
Vault.token = "42d1dee5-eb6e-102c-8d23-cc3ba875da51"
or authenticate with Vault using the Vault CLI:
$ vault auth ...
or set the environment variable $VAULT_TOKEN to the token value:
$ export VAULT_TOKEN="..."
Please refer to the documentation for more examples.
from /usr/local/share/ruby/gems/2.0/gems/vault-0.12.0/lib/vault/client.rb:381:in `error'
from /usr/local/share/ruby/gems/2.0/gems/vault-0.12.0/lib/vault/client.rb:291:in `request'
from /usr/local/share/ruby/gems/2.0/gems/vault-0.12.0/lib/vault/client.rb:197:in `post'
from /usr/local/share/ruby/gems/2.0/gems/vault-0.12.0/lib/vault/api/auth.rb:242:in `aws_iam'
from (irb):8
from /usr/bin/irb:12:in `<main>'
I am able to authenticate manually via the Vault CLI with IAM authentication.
I am unable to authenticate via the aws_iam method, using a slightly altered example from this code's inline comments:
I am able to authenticate manually via the Vault CLI with IAM authentication.
Using latest Amazon Linux AMI with default Ruby.
Ruby and Gems:
The text was updated successfully, but these errors were encountered: