1.4.1 • Published 14 days ago

medusa-file-s3 v1.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

S3

Store uploaded files to your Medusa backend on S3.

Plugin Documentation | Medusa Website | Medusa Repository

Features

  • Store product images on S3
  • Support for importing and exporting data through CSV files, such as Products or Prices.
  • Support for Bucket Policies and User Permissions.

Prerequisites


How to Install

1. Run the following command in the directory of the Medusa backend:

npm install medusa-file-s3

2. Set the following environment variables in .env:

S3_URL=<YOUR_BUCKET_URL>
S3_BUCKET=<YOUR_BUCKET_NAME>
S3_REGION=<YOUR_BUCKET_REGION>
S3_ACCESS_KEY_ID=<YOUR_ACCESS_KEY_ID>
S3_SECRET_ACCESS_KEY=<YOUR_SECRET_ACCESS_KEY>
S3_PREFIX=<YOUR_BUCKET_PREFIX> (optional)

3. In medusa-config.js add the following at the end of the plugins array:

const plugins = [
  // ...
  {
    resolve: `medusa-file-s3`,
    options: {
      s3_url: process.env.S3_URL,
      bucket: process.env.S3_BUCKET,
      prefix: process.env.S3_PREFIX, // optional
      region: process.env.S3_REGION,
      access_key_id: process.env.S3_ACCESS_KEY_ID,
      secret_access_key: process.env.S3_SECRET_ACCESS_KEY,
      aws_config_object: {},
    },
  },
]

Test the Plugin

1. Run the following command in the directory of the Medusa backend to run the backend:

npm run start

2. Upload an image for a product using the admin dashboard or using the Admin APIs.


Additional Resources

1.4.1

4 months ago

1.4.0

7 months ago

1.3.1

8 months ago

1.3.0

9 months ago

1.2.2

9 months ago

1.2.1

11 months ago

1.2.0

1 year ago

1.1.9-alpha.0

1 year ago

1.1.12-rc.0

1 year ago

1.1.9

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.7-alpha.0

2 years ago

1.1.8-alpha.0

2 years ago

1.1.8

1 year ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.6-alpha.1

2 years ago

1.1.6-alp.0

2 years ago

1.1.5

2 years ago

1.1.5-test.0

2 years ago

1.1.5-nxt.0

2 years ago

1.1.6-alpha.0

2 years ago

1.1.5-next.0

2 years ago

1.1.1

2 years ago

1.1.1-next.41

2 years ago

1.1.1-next.44

2 years ago

1.1.1-next.24

2 years ago

1.1.1-next.26

2 years ago

1.1.1-next.27

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

2.0.0-next.0

2 years ago

1.1.1-nxt.130

2 years ago

1.1.1-next.35

2 years ago

1.1.1-next.108

2 years ago

1.1.1-nxt.129

2 years ago

1.1.1-next.101

2 years ago

1.1.1-next.100

2 years ago

1.1.0

2 years ago

1.0.14-next.0

2 years ago

1.1.1-next.14

2 years ago

1.0.13

2 years ago

1.0.13-dev.119

2 years ago

1.0.13-dev.113

2 years ago

1.0.13-dev.122

2 years ago

1.0.9

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.12

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

3 years ago

1.0.3-next.0

3 years ago

1.0.1-next.1304

3 years ago

1.0.1

3 years ago

1.0.2-meilis.0

3 years ago

1.0.1-next.1199

3 years ago

1.0.1-meili.1214

3 years ago

1.0.1-meili.1212

3 years ago

1.0.1-meili.1213

3 years ago

1.0.1-meili.1209

3 years ago