Skip to content

Commit aff21c0

Browse files
committed
feat: Add support for opening AWS console at specific service
1 parent 6ef0b23 commit aff21c0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

internal/sso/console.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ func (p *Console) OpenBrowser(ctx context.Context) error {
6767
con := gconsole.AWS{
6868
Profile: p.Profile,
6969
Region: region,
70+
Service: p.Service,
7071
}
7172
session, err := con.URL(*credentials)
7273
if err != nil {

internal/sso/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type Login struct {
1717
type Console struct {
1818
Profile string `short:"p" long:"profile" env:"AWS_PROFILE" default:"default" description:"What profile to use"`
1919
Region string `short:"r" long:"region" env:"AWS_REGION" default:"us-east-1" description:"What region to use"`
20+
Service string `short:"s" long:"service" description:"Open console at specific service"`
2021
Url bool `short:"u" long:"url" description:"Only print login url"`
2122
Verbose bool `short:"v" long:"verbose" description:"Enable verbose messages"`
2223
}

0 commit comments

Comments
 (0)