Problem configuring repository-s3 plugin

I have installed Elasticsearch 7.1.1 and also installed repository-s3 plugin.

I'm trying to define the bucket in elasticsearch.yml as below:

s3.client.default.bucket: mybucket

Then after restarting Elasticsearch i'm getting this error:

java.lang.IllegalArgumentException: unknown setting [s3.client.default.bucket] please check that any required plugins are installed, or check the breaking changes documentation for removed settings.

I am not sure if I'm missing something of it's not allowed anymore.


This must be provided when you create the repository. It's not tight to a client anymore.

PUT _snapshot/my_s3_repository
  "type": "s3",
  "settings": {
    "bucket": "mybucket"

Thanks. Will go with this solution.