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

extra spaces after profile name is not considered

ArjunDandagi opened this issue · comments

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

aws cli is able to list the profiles when there is extra space after the profile keyword

[default]
region = eu-west-1

[profile     profile-include]
sso_start_url = https://example.awsapps.com/start
sso_region = eu-west-1
region = eu-west-1

[profile dev]
include_profile = profile-include
sso_account_id = 123456789012
sso_role_name = juststs

the output from aws-vault

/usr/local/bin/aws-vault login dev --debug
2023/03/02 11:36:17 aws-vault v7.0.0-rc6
2023/03/02 11:36:17 Using prompt driver: terminal
2023/03/02 11:36:17 [keyring] Considering backends: [keychain]
2023/03/02 11:36:17 Loading config file /Users/me/.aws/config
2023/03/02 11:36:17 Parsing config file /Users/me/.aws/config
2023/03/02 11:36:17 Profile 'profile-include' missing in config file
2023/03/02 11:36:17 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/03/02 11:36:17 [keyring] Found 6 results
2023/03/02 11:36:17 [keyring] Querying keychain for service="aws-vault", keychain="aws-vault.keychain"
2023/03/02 11:36:17 [keyring] Found 6 results
aws-vault: error: login: profile dev: No master credentials found