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

Suggest an enhancement: use the region of the default profile in file "config" #1

Open
james-hu opened this issue May 13, 2023 · 0 comments

Comments

@james-hu
Copy link

I found this very handy:

       export AWS_PROFILE=$1;
       thisProfileRegion=$(aws configure get region --profile $1);
       defaultProfileRegion=$(aws configure get region --profile default);
       export AWS_REGION=${thisProfileRegion:-$defaultProfileRegion};

So that I only need to define region in the "config" file once.

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

No branches or pull requests

1 participant