kaliber-scala / play-s3

S3 module for Play
MIT License
119 stars 49 forks source link

Support for chinese AWS Regions #93

Open phutflesz opened 6 years ago

phutflesz commented 6 years ago

S3Configuration.scala:

val regionEndpoints = Map(
    "us-east-1" -> "s3.amazonaws.com",
    ...
    // Add:
    "cn-north-1" -> "s3.cn-north-1.amazonaws.com.cn",
    "cn-northwest-1" -> "s3.cn-northwest-1.amazonaws.com.cn"
)
Hayena commented 6 years ago

Currently I am quite busy and do not have time to add this but as a workaround for now you can use the following

s3.region="cn-north-1" # or cn-northwest-1
s3.host="s3.cn-north-1.amazonaws.com.cn" # or "s3.cn-northwest-1.amazonaws.com.cn"