Skip to content

Commit

Permalink
providers/aws: Add note for us-east-1 empty location
Browse files Browse the repository at this point in the history
  • Loading branch information
justincampbell committed May 2, 2015
1 parent 1493cfb commit 460d8c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builtin/providers/aws/resource_aws_s3_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 460d8c2

Please sign in to comment.