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

**URL:** <https://discuss.elastic.co/t/ca-central-1-not-supported-by-repository-s3-plugin-for-snaphshots/70725>\
**Category:** Elasticsearch\
**Created:** [January 5, 2017, 7:53pm UTC](https://discuss.elastic.co/t/ca-central-1-not-supported-by-repository-s3-plugin-for-snaphshots/70725 "2017-01-05T19:53:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![animageofmine](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@animageofmine](https://discuss.elastic.co/u/animageofmine)\
**Post date:** [January 5, 2017, 7:53pm UTC](https://discuss.elastic.co/t/ca-central-1-not-supported-by-repository-s3-plugin-for-snaphshots/70725/1 "2017-01-05T19:53:46Z")

</div>

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](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:

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.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 5, 2017, 8:54pm UTC](https://discuss.elastic.co/t/ca-central-1-not-supported-by-repository-s3-plugin-for-snaphshots/70725/2 "2017-01-05T20:54:04Z")

</div>

I gave a workaround in the issue you opened:

> <https://github.com/elastic/elasticsearch/issues/22454#issuecomment-270753270>

and also a link to a similar PR:

> <https://github.com/elastic/elasticsearch/pull/22308>

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 2, 2017, 8:54pm UTC](https://discuss.elastic.co/t/ca-central-1-not-supported-by-repository-s3-plugin-for-snaphshots/70725/3 "2017-02-02T20:54:36Z")

</div>

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