This is done by using https in load balancer
curl -XPUT 'https://kibana.property-finance-es-cluster.
property-finance.realestate.com.au:9200/_snapshot/property_finance_s3_repository'
-d '{
"type": "s3",
"settings": {
"bucket": "rea-mad-elasticsearch-snapshots",
"region": "ap-southeast-2",
"base_path": "fp-elasticsearch-cluster-01/"
}
}'
export SNAPSHOT_NAME=$(date +%Y%m%d)
curl -v -XPUT
"https://kibana.property-finance-es-cluster.propertyfinance.realestate.com.au:9200/_snapshot/
property_finance_s3_repository/snapshot_$SNAPSHOT_NAME?wait_for_completion=true"
curl -XPOST
"localhost:9200/_snapshot/my_backup/snapshot_1/_restore?wait_for_completion=true"