99designs / aws-vault

A vault for securely storing and accessing AWS credentials in development environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't use --prompt=terminal with --ec2-server on Linux

cavoirom opened this issue · comments

  • I am using the latest release of AWS Vault: v7.2.0.
  • I have provided my .aws/config (redacted if necessary)
  • I have provided the debug output using aws-vault --debug (redacted if necessary)

The --debug output.

$ sudo aws-vault --backend file --file-dir /<redacted>/.awsvault/keys exec default --debug --ec2-server
2023/10/31 03:25:47 aws-vault v7.2.0
2023/10/31 03:25:47 Using prompt driver: terminal
2023/10/31 03:25:47 Loading config file /root/.aws/config
2023/10/31 03:25:47 Parsing config file /root/.aws/config
2023/10/31 03:25:47 [keyring] Considering backends: [file]
aws-vault: error: exec: Can't use --prompt=terminal with --ec2-server. Specify a different prompt driver

The only prompt driver available on Linux is terminal. I have no choice to overcome the issue. I found this one is similar to #888