Closed
Description
Docs mention that repository-s3 plugin is able to create AWS S3 bucket when it doesn't exist (and appropriate IAM permissions were added).
But it just fails without any validation according to this part of a code:
. SocketAccess.doPrivilegedVoid(() -> { if (client.doesBucketExist(bucket) == false) { throw new IllegalArgumentException("The bucket [" + bucket + "] does not exist. Please create it before " + " creating an s3 snapshot repository backed by it."); } });
Previously cloud-aws plugin was able to create bucket.
Is it expected for repository-s3 plugin?
Is it possible to change documentation accordingly to the plugin behavior or add possibility to create S3 bucket by ES/plugin means?
Thanks!