I'm trying to set the configuration for snapshot repository of elasticsearch nodes to S3.
I have installed the "repository-s3" plugin for elasticsearch.
PUT http://<username>:<password>@<elasticsearch-instance-ip>:9200/_snapshot/s3_repository?verify=false
{
"type": "s3",
"settings": {
"bucket": "bucket-name",
"region": "eu-west-1",
"access_key": "****",
"secret_key": "****"
}
}
and the 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": "illegal_argument_exception",
"reason": "Setting [access_key] is insecure, but property [allow_insecure_settings] is not set"
}
},
"status": 500
}
I have tried applying allow_insecure_settings setting in the elasticsearch.yml
configuration file but that does not work.
FYI I'm using X-Pack
plugin
Any suggestions?