fix(common): add missing region option
Signed-off-by: Mike Nguyen <hey@mike.ee>
This commit is contained in:
parent
2a96806f56
commit
f01014f483
|
@ -54,6 +54,13 @@ func NewConfig(ctx context.Context, authOptions auth.Options, opts ...ConfigOpti
|
|||
)
|
||||
}
|
||||
|
||||
if authOptions.Region != "" {
|
||||
configLoadOptions = append(
|
||||
configLoadOptions,
|
||||
config.WithRegion(authOptions.Region),
|
||||
)
|
||||
}
|
||||
|
||||
if options.HTTPClient != nil {
|
||||
configLoadOptions = append(
|
||||
configLoadOptions,
|
||||
|
|
Loading…
Reference in New Issue