providers/aws: Add note for us-east-1 empty location

This commit is contained in:
Justin Campbell 2015-05-01 09:50:49 -04:00
parent 564b7e1e67
commit be84cf8a8c

View File

@ -240,7 +240,8 @@ func websiteEndpoint(s3conn *s3.S3, d *schema.ResourceData) (string, error) {
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 == "" {
region = "us-east-1"
}