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

Make --region parameter top level #156

Closed
vetinari opened this issue Dec 4, 2015 · 6 comments
Closed

Make --region parameter top level #156

vetinari opened this issue Dec 4, 2015 · 6 comments
Assignees

Comments

@vetinari
Copy link

vetinari commented Dec 4, 2015

Please allow the --region parameter for senza, not only for each sub command ->

senza --region some-where-1 create ...

@hjacobs
Copy link
Contributor

hjacobs commented Dec 5, 2015

Actually all commands support the "--region" option, so we could have it on top-level. @vetinari do you have any specific need for it? Using the ~/.aws/config file is anyway the much more convenient way of selecting the AWS region.

@vetinari
Copy link
Author

vetinari commented Dec 6, 2015

Ease of use on the command line :) senza --region some-where-1 list [Enter] [ArrowUp] [Ctrl-W] instances[Enter].
The config file is ok, when you're in just one region

@lmineiro
Copy link
Contributor

👍

@whiskeysierra
Copy link
Contributor

👍

Having it as a top level parameter makes it easier to have an alias with the same name for senza:

alias west='export REGION=eu-west-1'
alias central='export REGION=eu-central-1'
alias senza='senza --region $REGION' 

@hjacobs hjacobs self-assigned this Mar 1, 2016
hjacobs added a commit that referenced this issue Mar 1, 2016
@hjacobs
Copy link
Contributor

hjacobs commented Mar 1, 2016

@whiskeysierra
Copy link
Contributor

Having it as a top level parameter makes it easier to have an alias with the same name for senza:

alias west='export REGION=eu-west-1'
alias central='export REGION=eu-central-1'
alias senza='senza --region $REGION'

FYI, an easier way to do this (even before) is to just set the AWS_DEFAULT_REGION environment variable.

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

5 participants