trek10inc / awsume

A utility for easily assuming AWS IAM roles from the command line.
https://awsu.me
MIT License
485 stars 90 forks source link

Profile not listed in --list-profiles #168

Open kfchou opened 2 years ago

kfchou commented 2 years ago

My config file has two profiles listed.

[default]
region = eu-west-1
output = json

[profile my_role]
role_arn = arn:aws:iam::0000000000:role/XXXXXX
mfa_serial = arn:aws:iam::0000000000:mfa/YYYYYYY
role_session_name = kenny.chou
region = eu-west-1
output = json
source_profile = default

When I run awsume --list-profiles, only the default profile is recognized image

I wonder if there's something wrong with my installation or configuration. I'm running Ubuntu in Windows subsystem for Linux. AWSume was installed with pip.

mtskillman commented 10 months ago

@kfchou are you running awsume --list-profiles in WSL or Ubuntu? generally speaking, with AWS development on Windows+WSL you are going to have 2 separate .aws directories -- one in Windows, one in WSL. you can symlink the linux .aws to refer to the windows .aws if you want. so basically I would confirm that your linux ~/.aws/config contains both those profiles.