After debugging the js of the plugin I found that you can specify rootPath in the config like below:
{
provider: 'aws-s3',
providerOptions: {
rootPath: 'strapi',
accessKeyId: env('AWS_S3_KEY'),
secretAccessKey: env('AWS_S3_SECRET'),
region: env('AWS_S3_REGION'),
params: {
Bucket: env('AWS_S3_BUCKET'),
},
},
actionOptions: {
upload: {},
uploadStream: {},
delete: {},
}
After the rootPath is specified the plugin will work only with the strapi folder in your specified bucket