Ca-central-1 not supported by repository-S3 plugin for snaphshots

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

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:

  1. Is there a way I can contribute to the code and update it for code review?
  2. 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.

I gave a workaround in the issue you opened:

and also a link to a similar PR:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.