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
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.
Most helpful comment
I fixed mine by
$ unset AWS_VAULT