fix s3 default region to match provider

This commit is contained in:
James Bardin 2019-02-25 19:13:48 -05:00
parent 37f391f1f7
commit dd16455a79
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ func New() backend.Backend {
Type: schema.TypeString,
Required: true,
Description: "The region of the S3 bucket.",
DefaultFunc: schema.EnvDefaultFunc("AWS_DEFAULT_REGION", nil),
DefaultFunc: schema.MultiEnvDefaultFunc([]string{
"AWS_REGION",
"AWS_DEFAULT_REGION",
}, nil),
},
"dynamodb_endpoint": {