Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra spaces after profile name is not considered #1172

Closed
3 tasks done
ArjunDandagi opened this issue Mar 2, 2023 · 2 comments · May be fixed by #1219
Closed
3 tasks done

extra spaces after profile name is not considered #1172

ArjunDandagi opened this issue Mar 2, 2023 · 2 comments · May be fixed by #1219
Labels

Comments

@ArjunDandagi
Copy link

ArjunDandagi commented Mar 2, 2023

  • 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)
@ArjunDandagi
Copy link
Author

ArjunDandagi commented Mar 2, 2023

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

@ArjunDandagi ArjunDandagi changed the title :q! extra spaces after profile name is not considered Mar 2, 2023
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Aug 30, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant