Aws-vault: error: aws-vault sessions should be nested with care, unset $AWS_VAULT to force

Created on 25 Mar 2019  路  4Comments  路  Source: 99designs/aws-vault

I keep running into the following error message:

error: aws-vault sessions should be nested with care, unset $AWS_VAULT to force

aws-vault list shows no active sessions.

$ aws-vault --version
v4.5.1

$ aws-vault --keychain=login --backend=keychain --prompt=terminal exec production -- aws
aws-vault: error: aws-vault sessions should be nested with care, unset $AWS_VAULT to force

$ echo $AWS_VAULT # Returns nothing                                                                                                                 

Most helpful comment

I fixed mine by $ unset AWS_VAULT

All 4 comments

I fixed mine by $ unset AWS_VAULT

do you know why this needs to be done though? it is a workaround IMHO, not a solution. I had to do this as well, on the most recent version of aws-cli and aws-vault, using pass as a key store

The unset $AWS_VAULT didn't work for me.

I saw that I had a stale aws-vault exec <profile> --server running in the background since last week Friday. After killing using kill -9 (which also killed my iterm), that allowed me to get around this issue. I also switched --server to --ecs-server and hoping that will auto refresh without having to kill it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

solsglasses picture solsglasses  路  3Comments

iconara picture iconara  路  6Comments

christophetd picture christophetd  路  4Comments

ifunky picture ifunky  路  4Comments

gws picture gws  路  5Comments