I hope this gist helps someone as it was a bit of a pain for me to get this working (I couldn't find any documentation on it). If you are using respository-s3
on an ElasticSearch cluster in AWS GovCloud, you will not be able to configure the repository because the Kibana UI does not show some of these options. The best way is to do it via cURL / elasticsearch api as follows:
curl -X PUT "localhost:9200/_snapshot/your_bucket_name?pretty" -H 'Content-Type: application/json' -d'
{
"type": "s3",
"settings": {
"bucket": "your_bucket_name",
"region": "us-gov-west-1",
"endpoint": "s3.us-gov-west-1.amazonaws.com"
}
}
'
Replace bucket
, region
, and endpoint
with your personal values.