common-fate / granted

The easiest way to access your cloud.
https://granted.dev
MIT License
1.01k stars 93 forks source link

`assume` command errors with Profile 'xyz' is not configured properly. #460

Open SantiRaposo opened 1 year ago

SantiRaposo commented 1 year ago

Hello,

With the following configuration, granted shows the previously mentioned error when assuming a role:

# ~/.aws/credentials 
[default]
aws_access_key_id=***
aws_secret_access_key=***
aws_session_toke

# ~/.aws/config
[default]
region=eu-west-1
azure_tenant_id=****
azure_app_id_uri=****
azure_default_username=****
azure_default_role_arn=
azure_default_duration_hours=12
azure_default_remember_me=true

The CLI otherwise works properly and I have been unable to see any debug messages, so I imagine that this is due to the code trying to process the azure_* variables, which are used for aws-azure-login.