jckuester / awsls

A list command for AWS resources
MIT License
826 stars 53 forks source link

Used aws sso for profile #41

Closed wbattou closed 3 years ago

wbattou commented 3 years ago

Hello,

Is it possible to add the aws sso option to be able to used it on the CLI.

Thank you in advance, Best regards, Walid

jckuester commented 3 years ago

Hi @wal13400,

maybe you want to have a look at this issue https://github.com/jckuester/awsls/issues/27, where someone is using awsls with SSO by creating a profile. Or do you need anything else?

[profile example]
sso_start_url = https://d-1234567890.awsapps.com/start#/
sso_region = eu-west-1
sso_account_id = 123456789012
sso_role_name = AdministratorAccess
region = eu-west-1
output = json
I run any query using the profile:
$ awsls --profiles example --regions eu-west-1 "*"
wbattou commented 3 years ago

Hi @jckuester ,

Thank you very much, I thought it was not possible but did not tried like this.

Thank you !!!