@simerca/strapi-provider-upload-aws-s3-fix
v1.0.2
Published
the extended version of the strapi-provider-upload-aws
Downloads
2
Readme
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
- Reads the AWS credentials from the environment variables.
- 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.