mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
providers/aws: Add note for us-east-1 empty location
This commit is contained in:
parent
564b7e1e67
commit
be84cf8a8c
@ -240,7 +240,8 @@ func websiteEndpoint(s3conn *s3.S3, d *schema.ResourceData) (string, error) {
|
|||||||
region = *location.LocationConstraint
|
region = *location.LocationConstraint
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default to us-east-1 if the bucket doesn't have a region
|
// Default to us-east-1 if the bucket doesn't have a region:
|
||||||
|
// http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html
|
||||||
if region == "" {
|
if region == "" {
|
||||||
region = "us-east-1"
|
region = "us-east-1"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user