mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 20:36:26 +02:00
Add AWS_DYNAMODB_REGION Environment variable (#15054)
Added AWS_DYNAMODB_REGION env
This commit is contained in:
parent
7089487509
commit
0be45d0120
3
changelog/15054.txt
Normal file
3
changelog/15054.txt
Normal file
@ -0,0 +1,3 @@
|
||||
```release-note:feature
|
||||
storage/dynamodb: Added `AWS_DYNAMODB_REGION` environment variable.
|
||||
```
|
||||
@ -163,13 +163,16 @@ func NewDynamoDBBackend(conf map[string]string, logger log.Logger) (physical.Bac
|
||||
if endpoint == "" {
|
||||
endpoint = conf["endpoint"]
|
||||
}
|
||||
region := os.Getenv("AWS_REGION")
|
||||
region := os.Getenv("AWS_DYNAMODB_REGION")
|
||||
if region == "" {
|
||||
region = os.Getenv("AWS_DEFAULT_REGION")
|
||||
region = os.Getenv("AWS_REGION")
|
||||
if region == "" {
|
||||
region = conf["region"]
|
||||
region = os.Getenv("AWS_DEFAULT_REGION")
|
||||
if region == "" {
|
||||
region = DefaultDynamoDBRegion
|
||||
region = conf["region"]
|
||||
if region == "" {
|
||||
region = DefaultDynamoDBRegion
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user