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

Support switching the AWS region #29

Open
samuel-phan opened this issue Nov 20, 2024 · 0 comments
Open

Support switching the AWS region #29

samuel-phan opened this issue Nov 20, 2024 · 0 comments

Comments

@samuel-phan
Copy link

Description

Support switching the AWS region.

To change the AWS region, I would run:

awsd set region us-east-1

The env vars $AWS_REGION and $AWS_DEFAULT_REGION (legacy) would be set to us-east-1.

awsd set region must support completion, i.e. if I type awsd set region us<Tab>, it should offer me us-east-1, us-west-1, etc.

We could also have a subcommand:

awsd list regions

To be consistent, we should refactor awsd list to awsd list profiles.

We could also add the set profile subcommand:

awsd set profile foo  # same as "awsd foo", but this is in case someone decided to name an AWS profile "list", "set", etc. though we agree that this is a bad idea :)

awsd set profile must support completion, just like awsd <Tab>.

New subcommands tree

aws
  - completion
  - help
  - list
    - profiles
    - regions
  - set
    - profile
    - region
  - version

Inspired by: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/aws

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