File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ type DescribeCommand struct {
2727
2828type AwsOptions struct {
2929 Profile string `short:"p" long:"profile" description:"AWS Profile to use. (If you are not using Vaulted)."`
30- Region string `short:"r" long:"region" description:"Region to target." default:"eu-west-1" `
30+ Region string `short:"r" long:"region" description:"Region to target."`
3131}
3232
3333type TargetOptions struct {
Original file line number Diff line number Diff line change @@ -63,7 +63,10 @@ type Opts struct {
6363
6464// NewManager creates a new Manager from an AWS session and region.
6565func NewManager (sess * session.Session , region string , opts Opts ) * Manager {
66- awsCfg := & aws.Config {Region : aws .String (region )}
66+ awsCfg := & aws.Config {}
67+ if region != "" {
68+ awsCfg .Region = aws .String (region )
69+ }
6770 m := & Manager {
6871 ssmClient : ssm .New (sess , awsCfg ),
6972 s3Client : s3 .New (sess , awsCfg ),
You can’t perform that action at this time.
0 commit comments