mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Region is required so error in awsutil if not set and set if empty in client code in logical/aws
This commit is contained in:
@@ -30,6 +30,10 @@ func getRootConfig(s logical.Storage) (*aws.Config, error) {
|
||||
credConfig.Region = config.Region
|
||||
}
|
||||
|
||||
if credConfig.Region == "" {
|
||||
credConfig.Region = "us-east-1"
|
||||
}
|
||||
|
||||
creds, err := awsutil.GenerateCredentialChain(credConfig)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user