How to make lens use other aws profile than the default?

We have been using lens and it works like a charm when we use it with user’s default secret and access keys configured via aws configure.

However, if I want to assume a role and use that sts caller identity’s secret and access keys, Lens fails to detect that unless we add them under [default] in ~/.aws/credentials.

Is it possible for lens to detect these temporary creds from env vars? Like if we set these secrets in ENV vars , k9s works perfectly fine and uses the assumed role over .aws/credentialls file. But lens always points to default section of credentials file.

Please guide me with a simplest way to work with aws iam role assumptions and its temporary credentials.

Thanks.

Does setting AWS_PROFILE env variable work here?