Snapshot to S3 from elasticsearch cloud

hello,
we're using elastic.co cloud service, platinum license.
we want to snapshot logs to S3 bucket.
repository-s3 is installed on the server.
when using the devtools with this command:

 PUT /_snapshot/s3_snapshot1
{
  "type": "s3",
  "settings": {
    "bucket": "BUCKET_NAME",
    "region": "eu-west-1",
    "access_key": "XXXXXXXXXXXXXXXXXXXXXXXXX",
    "secret_key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "compress": "true"
  }
}

(of course, changing the keys and bucket)
i get this error:

#! Deprecation: Using s3 access/secret key from repository settings. Instead store these in named clients and the elasticsearch keystore for secure settings.
{
  "acknowledged" : true
}

how do i do that? all guides i founds seems to talk about doing it from command line.

would appreciate your help!
thanks

Welcome.

You can go to security settings and create the keystore and add the needed credentials.

I'd recommend asking for official support if needed. Please see https://www.elastic.co/cloud/elasticsearch-service/support on how to raise a support ticket for Elastic Cloud :slight_smile:

1 Like

Hi @Ilan_Peretz

Here's the link to the UI referenced above: https://www.elastic.co/guide/en/cloud/current/ec-configuring-keystore.html. Other than using this UI instead of the CLI, the steps should be the same

Alex

thanks, works!

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