Skip to content

Commit

Permalink
Merge pull request #557 from 99designs/add-region-to-login
Browse files Browse the repository at this point in the history
Add --region to login and exec
  • Loading branch information
mtibben authored Apr 20, 2020
2 parents ec402aa + 732e29e commit 4fceeef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ func ConfigureExecCommand(app *kingpin.Application) {
Short('n').
BoolVar(&input.NoSession)

cmd.Flag("region", "The AWS region").
StringVar(&input.Config.Region)

cmd.Flag("mfa-token", "The MFA token to use").
Short('t').
StringVar(&input.Config.MfaToken)
Expand Down
3 changes: 3 additions & 0 deletions cli/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ func ConfigureLoginCommand(app *kingpin.Application) {
cmd.Flag("path", "The AWS service you would like access").
StringVar(&input.Path)

cmd.Flag("region", "The AWS region").
StringVar(&input.Config.Region)

cmd.Flag("stdout", "Print login URL to stdout instead of opening in default browser").
Short('s').
BoolVar(&input.UseStdout)
Expand Down

0 comments on commit 4fceeef

Please sign in to comment.