Skip to content

Commit

Permalink
Merge pull request #9032 from AlexanderEkdahl/master
Browse files Browse the repository at this point in the history
Corrected Seoul S3 Website Endpoint
  • Loading branch information
stack72 authored Sep 24, 2016
2 parents d642e6f + d2861be commit 464ea2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions builtin/providers/aws/resource_aws_s3_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -1105,9 +1105,9 @@ func WebsiteEndpoint(bucket string, region string) *S3Website {
func WebsiteDomainUrl(region string) string {
region = normalizeRegion(region)

// Frankfurt(and probably future) regions uses different syntax for website endpoints
// New regions uses different syntax for website endpoints
// http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteEndpoints.html
if region == "eu-central-1" || region == "ap-south-1" {
if region == "eu-central-1" || region == "ap-south-1" || region == "ap-northeast-2" {
return fmt.Sprintf("s3-website.%s.amazonaws.com", region)
}

Expand Down
2 changes: 1 addition & 1 deletion builtin/providers/aws/website_endpoint_url_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var websiteEndpoints = []struct {
{"ap-southeast-1", "bucket-name.s3-website-ap-southeast-1.amazonaws.com"},
{"ap-northeast-1", "bucket-name.s3-website-ap-northeast-1.amazonaws.com"},
{"ap-southeast-2", "bucket-name.s3-website-ap-southeast-2.amazonaws.com"},
{"ap-northeast-2", "bucket-name.s3-website-ap-northeast-2.amazonaws.com"},
{"ap-northeast-2", "bucket-name.s3-website.ap-northeast-2.amazonaws.com"},
{"sa-east-1", "bucket-name.s3-website-sa-east-1.amazonaws.com"},
}

Expand Down

0 comments on commit 464ea2d

Please sign in to comment.