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

The config profile (autoawsume-[profile-name]) could not be found #119

Closed
tero opened this issue Aug 18, 2020 · 8 comments
Closed

The config profile (autoawsume-[profile-name]) could not be found #119

tero opened this issue Aug 18, 2020 · 8 comments
Assignees

Comments

@tero
Copy link

tero commented Aug 18, 2020

I tried to use aws-cli when the session token was expired and got The config profile could not be found error. Ok, I restart awesume, I thought. But running awsume now fails with same error. Only way to fix this was to switch new terminal window.

@mbarneyjr mbarneyjr self-assigned this Aug 19, 2020
@mbarneyjr
Copy link
Member

mbarneyjr commented Aug 21, 2020

Hi, thanks for the bug report! I've implemented a fix and it should be found in pre release 4.5.0a1. I'll deploy this to release 4.5.0 once I'm confident in the changes. If you experience any issues with pre release 4.5.0a1 please update this issue, thanks!

@tero
Copy link
Author

tero commented Aug 21, 2020

Great, thanks! I'll just upgraded to pre-release and will update if there will be any issues with it.

@tero
Copy link
Author

tero commented Aug 21, 2020

I think this broke MFA support? Pre-release version doesn't ask for MFA token but shows and error: Awsume error: An error occurred (AccessDenied) when calling the AssumeRole operation: User: arn:aws:iam::[account]:user/[user] is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::[another-account]:role/AdminAccessFromLoginRole

@mbarneyjr
Copy link
Member

mbarneyjr commented Aug 21, 2020

Hmm, could you share your profile configuration (redacting any secrets or account IDs)?

With a profile setup like this I'm being prompted for MFA:

#~/.aws/credentials
[test]
aws_access_key_id = ...
aws_secret_access_key = ...

#~/.aws/config
[profile test]
mfa_serial = ...

[profile test-role]
role_arn = ...
source_profile = test
$ awsume test-role
Enter MFA token: 

@tero
Copy link
Author

tero commented Aug 21, 2020

Could it be that I have org-login only in credentials file?

#~/.aws/credentials
[org-login]
aws_access_key_id = ...
aws_secret_access_key = ...

#~/.aws/config
[profile org-dev]
region=eu-central-1
role_arn=...
source_profile=org-login
mfa_serial=...

@mbarneyjr
Copy link
Member

mbarneyjr commented Aug 21, 2020

Okay cool, I think I'm able to replicate the issue, I'll update this issue when a fix is pushed

@mbarneyjr
Copy link
Member

mbarneyjr commented Aug 21, 2020

This should be resolved in pre release 4.5.0a3, please let us know if you experience any issues, thanks!

@mbarneyjr
Copy link
Member

mbarneyjr commented Nov 20, 2020

4.5.0 has been released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants