rkoval / alfred-aws-console-services-workflow

A powerful workflow for quickly opening up AWS Console Services in your browser or searching for entities within them.
MIT License
314 stars 54 forks source link

Not switching Profile #72

Open chuan29812 opened 3 months ago

chuan29812 commented 3 months ago

Hey there, i just started exploring this. I use SSO for my work, but i have a script that would populate both the credential with the most up-to-date info.

However, im not able to get the profile to switch

Heres what credential and config file

~/.aws/credential
[staging]
aws_access_key_id=ASIA3SSXYCOD7UEVK675
aws_secret_access_key=BaHMpKXc5D0ik868AR1e6rNpaQsZ0CX72S1SJNQ3
aws_session_token={token}

~/.aws/config
[sso-session fw_sso]
sso_start_url = https://myapp.awsapps.com/start
sso_region = us-east-1

[profile staging]
sso_session = my_sso
sso_account_id = 0154011874
sso_role_name = Engineer
region = us-east-1

As you can see i dont have a default set, so i use @ to set the overwrite image

This would open up the right service with the right region, but the account id always stay the same. I tried the debugging option in Alfred, but could not find anything useful

Any help would be appreciated, thanks