Problem with AWS


I wanted to implement S3 on Strapi, I filled in the strings in the params of my plugins.js, but when I try to upload an image, strapi gives me the error :

error: Missing required key ‘Bucket’ in params
MissingRequiredParameter: Missing required key ‘Bucket’ in params

Here is my configuration:

  upload: {
    config: {
      provider: 'aws-s3',
      providerOptions: {
        accessKeyId: env('A....'),
        secretAccessKey: env('7....'),
        region: env('eu-west-...'),
        params: {
          Bucket: env('r....'),

Does the variable in env exist ?

It looks to me, that you are using the AWS credentials directly in your plugins.js in env(). Do you have a .env file in the strapi root with the AWS credentials:


Then use this enviroment vars in your plugins.js: eg. env(‘AWS_BUCKET’)