Amazon S3 Chinese Special Region Support

Amazon deployed a region in China last year, but this region is not a part of amazonaws.com. The region name is “cn-north-1”, and the s3 endpoint is “s3.cn-north-1.amazonaws.com.cn”. So is that possible for Discourse to support this s3 region? Thank you for your fantastic work.

You could add a pull request for it in GitHub, if you want.

1 Like

Here’s the file:

2 Likes

thanks, I will try to fix it.

How to add this region?
Shall I just add a ‘cn-north-1’ in def self.valid_values?

How is it map to endpoint “s3.cn-north-1.amazonaws.com.cn”?