Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Region embedded in profile through AWS config files is ignored #182

Open
varunchandak opened this issue Jan 22, 2018 · 8 comments
Open

Region embedded in profile through AWS config files is ignored #182

varunchandak opened this issue Jan 22, 2018 · 8 comments

Comments

@varunchandak
Copy link

Suppose I have:

  • profile A with region X
  • profile B with region Y

Using awless -p A config set aws.region X, whenever I try to use profile B, it uses the region X.

The correct working should be A::X and B::Y, not B::X

@fxaguessy
Copy link
Contributor

That's an interesting feedback. For now, in awless we chose to manage independently regions and profiles, but it could also make sense to change both region and profile when switching profile.

Note anyway that you can use awless switch to both region and profile: e.g. awless sw A us-west-1.

We will discuss about this feature and its consequences on UX, for example:

  • do we want to change region transparently when doing awless -p A ...
  • only when using awless switch command ?

@varunchandak
Copy link
Author

Never tried the awless switch but I'd recommend to use awless -p A ... as that's how we call the profiles.

@awilkins
Copy link

Since you can declare region in the .aws/ config files and the aws cli tools respect this as the default region for that profile, it would be "least surpriseful" if awless did the same thing and switched to the region associated with the profile in the AWS CLI config when switching to that config.

@simcap
Copy link
Contributor

simcap commented Jan 26, 2018

@awilkins I agree with you. We want to indeed "least suprise" the user and follow usual loading of the aws config. We also want to make clear to the user what is going on.

We are in the process of reviewing that, making sure it is proper and it should be included in the next release.

Thanks for the feedback!

simcap added a commit that referenced this issue Jan 30, 2018
Notify on region/profile precedence rule
simcap added a commit that referenced this issue Jan 30, 2018
Notify on region/profile precedence rule
@simcap
Copy link
Contributor

simcap commented Jan 30, 2018

I am renaming this issue to reflect the actual bug

@simcap simcap changed the title region not mapping across different profiles Region embedded in profile through AWS config files is ignored Jan 30, 2018
@simcap
Copy link
Contributor

simcap commented Jan 30, 2018

@varunchandak if you have time you can use the latest master (stable and compatible) and let me know if that fixes the issue. Cheers!

@varunchandak
Copy link
Author

Sure...!

@simcap
Copy link
Contributor

simcap commented Feb 1, 2018

... use awless switch .... to update region and/or profile as awless config set is deprecated for region/profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants