victorskl / yawsso

Yet Another AWS SSO - sync up AWS CLI v2 SSO login session to legacy CLI v1 credentials
MIT License
302 stars 26 forks source link

Add parameter to control setting the region in the .aws/credentials file #88

Closed David-HH-Dev closed 4 months ago

David-HH-Dev commented 8 months ago

Hi @victorskl,

I came across the issue reported in https://github.com/victorskl/yawsso/issues/76 because I was wondering why the aws clients are telling me that there is no default region defined in the profile. It has been working before, but then since I updated yawsso I started to have an issue. So actually my request would be the opposite as what is explained in https://github.com/victorskl/yawsso/issues/76. Do you think it would be possible to implement a parameter so that you can define whether you want the region in the credentials file or not? Something like a switch "-r" to tell it to copy the region for example? yawsso -p dev:foo -r

victorskl commented 8 months ago

Okay. Let me see to this.

victorskl commented 4 months ago

The yawsso-1.2.0 out.!

pip install -U yawsso==1.2.0

This works now;

yawsso -p dev:foo -r
yawsso --help
  <...>
  -r, --region          Add region to credentials file