# Reindex from AWS elasticsearch to elastic cloud

**URL:** <https://discuss.elastic.co/t/reindex-from-aws-elasticsearch-to-elastic-cloud/300911>\
**Category:** Elasticsearch\
**Created:** [March 29, 2022, 4:40am UTC](https://discuss.elastic.co/t/reindex-from-aws-elasticsearch-to-elastic-cloud/300911 "2022-03-29T04:40:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vadiraj\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vadiraj_b/32/103610_2.png) [@Vadiraj\_B](https://discuss.elastic.co/u/Vadiraj_B)\
**Post date:** [March 29, 2022, 4:40am UTC](https://discuss.elastic.co/t/reindex-from-aws-elasticsearch-to-elastic-cloud/300911/1 "2022-03-29T04:40:27Z")

</div>

We have a AWS Elasticsearch cluster. We are trying to reindex this onto elastic cloud instance. We have created Elasticsearch intstance on elastic cloud. and from kibana trying to reindex. We have listed remote source (AWS Elasticsearch) in reindex.remote.whitelist. But still, we are getting "User not authorised to do HTTPGet" error when tring to reindex.

Any help is appreciated

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 29, 2022, 5:31am UTC](https://discuss.elastic.co/t/reindex-from-aws-elasticsearch-to-elastic-cloud/300911/2 "2022-03-29T05:31:28Z")

</div>

Welcome to our community! 😃

This sounds like the aws service causing issues with the authentication.  
Can you share the full reindex request and error?

---

<div class="post-metadata">

**Author:** ![Vadiraj\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vadiraj_b/32/103610_2.png) [@Vadiraj\_B](https://discuss.elastic.co/u/Vadiraj_B)\
**Post date:** [March 29, 2022, 9:31am UTC](https://discuss.elastic.co/t/reindex-from-aws-elasticsearch-to-elastic-cloud/300911/3 "2022-03-29T09:31:09Z")

</div>

here is the reindex request

```auto
POST _reindex?pretty=true&scroll=10h&wait_for_completion=false
{
  "source": {
    "remote": {
      "host": "https://search-staging-63-a-zq42juvgs5cvwkxd2k3q7hurx4.us-east-1.es.amazonaws.com:443",
      "socket_timeout": "60m"
    },
    "size": 100,
    "index": "survale__surveys"
  },
  "dest": {
    "index": "survale__surveys"
  }
}

```

and here is the error

```auto
"error" : {
    "type" : "status_exception",
    "reason" : """body={"Message":"User: anonymous is not authorized to perform: es:ESHttpGet"}""",
    "caused_by" : {
      "type" : "response_exception",
      "reason" : """method [GET], host [https://search-staging-63-a-zq42juvgs5cvwkxd2k3q7hurx4.us-east-1.es.amazonaws.com:443], URI [/], status line [HTTP/1.1 403 Forbidden]
{"Message":"User: anonymous is not authorized to perform: es:ESHttpGet"}"""
    }
  }

```

---

<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:** [March 29, 2022, 2:02pm UTC](https://discuss.elastic.co/t/reindex-from-aws-elasticsearch-to-elastic-cloud/300911/4 "2022-03-29T14:02:55Z")

</div>

I think you should do something like:

```auto
POST _reindex?pretty=true&scroll=10h&wait_for_completion=false
{
  "source": {
    "remote": {
      "host": "https://search-staging-63-a-zq42juvgs5cvwkxd2k3q7hurx4.us-east-1.es.amazonaws.com:443",
      "socket_timeout": "60m",
      "username": "user",
      "password": "pass"
    },
    "size": 100,
    "index": "survale__surveys"
  },
  "dest": {
    "index": "survale__surveys"
  }
}

```

And give the username / password that are needed for this.

---

<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:** [April 26, 2022, 2:03pm UTC](https://discuss.elastic.co/t/reindex-from-aws-elasticsearch-to-elastic-cloud/300911/5 "2022-04-26T14:03:15Z")

</div>

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