Region property support
dmitryax opened this issue · 3 comments
dmitryax commented
Thank you for this very helpful tool.
What do you think about updating defaut['region']
property with profile switching if it's set in .aws/config
?
hpcsc commented
thanks. Glad that you find it useful
Updating region
makes sense. I added that function in master branch (if you want to try it out, find binary with hash 6291f5f6f6ee45a875fbcf596bb98c89a5d50cdc
in https://dl.bintray.com/hpcsc/aws-profile/). I'll publish a new release in a few days after doing a few more changes
The logic at the moment is:
- if a profile in
credentials
is selected- if that profile has
region
set inconfig
file, setregion
fordefault
profile inconfig
file - if that profile has no
region
setting, clearregion
indefault
profile inconfig
file if have
- if that profile has
- if a profile in
config
is selected- if that profile has
region
set, setregion
fordefault
profile inconfig
file - if that profile has no
region
setting, clearregion
indefault
profile inconfig
file if have
- if that profile has
Please let me know if you find any issue
hpcsc commented
released in v0.3.0
dmitryax commented
Great. It works. thank you!