1.0.4 • Published 4 years ago

strapi-provider-upload-aws-s3-fix v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

strapi-provider-upload-aws-s3-ext

Resources

Install

npm install strapi-provider-upload-aws-s3-ext

Description

This package extends strapi's aws-s3-upload provider. The key differences are

  1. Reads the AWS credentials from the environment variables.
  2. Allows admins to select default ACL's for the uploads.

Set AWS Credentials

You need to add a new property called aws to your config/custom.json file(s) and set your credentials as follows.

// config/custom.json
{
  "customConfig": "This configuration is accessible through strapi.config.environments.development.myCustomConfiguration",
  "aws": {
    "accessKeyId": "${process.env.AWS_ACCESS_KEY_ID || AWS Access Key Id}",
    "secretAccessKey": "${process.env.AWS_SECRET_ACCESS_KEY || AWS Secret Key}"
  }
}

You can rename the environment variables as you like.

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago