I looked at github and it looks like ca-central-1 is not a supported region, but it looks like it is pretty straight forward to update the code to support the new region.
Following is the error I get when I register a S3 repository for snapshots:
{
"error": {
"root_cause": [
{
"type": "repository_exception",
"reason": "[essnapshots] failed to create repository"
}
],
"type": "repository_exception",
"reason": "[essnapshots] failed to create repository",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "No automatic endpoint could be derived from region [ca-central-1]"
}
},
"status": 500
}
Following is the code https://github.com/elastic/elasticsearch/blob/master/plugins/repository-s3/src/main/java/org/elasticsearch/cloud/aws/InternalAwsS3Service.java
Function : private static String getEndpoint(String region) {}
There is no case for ca-central-1, so the above exception makes sense.
I filed a request already, but had a couple of quick questions:
- Is there a way I can contribute to the code and update it for code review?
- If not, I am guessing this is an officially supported ES repository, so can someone update this quickly, so that we can pull and start backing up data in ca-central-1 region?
FYI: We are planning to go live in production in next few days. Please let me know. Thank you.