Issue with s3 repository

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

This is incorrect:

"endpoint": "eu-west-1",

You need to read https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-s3-client.html (see endpoint)