Hi guys,
I'm trying to create es snapshots in s3, region: eu-west-2 (London) and facing failure.
Please see below more info:
es version:
curl -XGET 'localhost:9200'
{
  "name" : "node-name",
  "cluster_name" : "es-cluster",
  "cluster_uuid" : "IYV8G-gSRmqkQLsSw2OXwQ",
  "version" : {
    "number" : "2.4.6",
    "build_hash" : "5376dca9f70f3abef96a77f4bb22720ace8240fd",
    "build_timestamp" : "2017-07-18T12:17:44Z",
    "build_snapshot" : false,
    "lucene_version" : "5.5.4"
  },
  "tagline" : "You Know, for Search"
when trying to create snapshot in other region (eu-west-1 for example), it looks good:
curl -XPUT 'http://localhost:9200/_snapshot/s3_repository?verify=false&pretty' -d'
{
  "type": "s3",
  "settings": {
    "bucket": "bucket-snapshot",
    "region": "eu-west-1"
}
}'
response is:
{
  "acknowledged" : true
}
but, when trying the same but in region eu-west-2 - it failed:
curl -XPUT 'http://localhost:9200/_snapshot/s3_repository?verify=false&pretty' -d'
{
  "type": "s3",
  "settings": {
    "bucket": "bucket-snapshot",
    "region": "eu-west-2"
  }
}'
response is:
{
  "error" : {
    "root_cause" : [ {
      "type" : "repository_exception",
      "reason" : "[s3_repository] failed to create repository"
    } ],
    "type" : "repository_exception",
    "reason" : "[s3_repository] failed to create repository",
    "caused_by" : {
      "type" : "creation_exception",
      "reason" : "Guice creation errors:\n\n1) Error injecting constructor, java.lang.IllegalArgumentException: No automatic endpoint could be derived from region [eu-west-2]\n  at org.elasticsearch.repositories.s3.S3Repository.<init>(Unknown Source)\n  while locating org.elasticsearch.repositories.s3.S3Repository\n  while locating org.elasticsearch.repositories.Repository\n\n1 error",
      "caused_by" : {
        "type" : "illegal_argument_exception",
        "reason" : "No automatic endpoint could be derived from region [eu-west-2]"
      }
    }
  },
  "status" : 500
}
can you please assist with issue ? what is wrong here ?
Thank you,
Ron
 :