@meaning-tech/provider-upload-aws-s3

1.0.3 • Public • Published

meaning-tech/provider-upload-aws-s3

Resources

Links

Installation

# using npm
npm install @meaning-tech/provider-upload-aws-s3 --save

Configuration

See the documentation about using a provider for information on installing and using a provider. To understand how environment variables are used in Strapi, please refer to the documentation about environment variables.

Provider Configuration

./config/plugins.js

module.exports = ({ env }) => ({
  // ...
  upload: {
    config: {
      provider: '@meaning-tech/provider-upload-aws-s3',
      providerOptions: {
        accessKeyId: env('AWS_ACCESS_KEY_ID'),
        secretAccessKey: env('AWS_ACCESS_SECRET'),
        region: env('AWS_REGION'),
        params: {
          Bucket: env('AWS_BUCKET'),
        },
        cdn: env('AWS_ENDPOINT'),
      },
      actionOptions: {
        upload: {},
        uploadStream: {},
        delete: {},
      },
    },
  },
  // ...
});

Required AWS Policy Actions

These are the minimum amount of permissions needed for this provider to work.

"Action": [
  "s3:PutObject",
  "s3:GetObject",
  "s3:ListBucket",
  "s3:DeleteObject",
  "s3:PutObjectAcl"
],

Readme

Keywords

Package Sidebar

Install

npm i @meaning-tech/provider-upload-aws-s3

Homepage

strapi.io

Weekly Downloads

1

Version

1.0.3

License

SEE LICENSE IN LICENSE

Unpacked Size

6.44 kB

Total Files

4

Last publish

Collaborators

  • jeffersonaguilar