Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

serverless-components/minio-object

Repository files navigation

minio-object

Instantly create, update and remove Minio Objects with Serverless Components.

  1. Install
  2. Create
  3. Configure
  4. Deploy

1. Install

$ npm install -g serverless

2. Create

Just create a serverless.yml file

$ touch serverless.yml

Then create a .env file

$ touch .env

Update the .env file with information about your Minio setup

# .env
MINIO_ENDPOINT=minio.example.com
MINIO_SSL=false
MINIO_PORT=9000
MINIO_ACCESS_KEY=xxxx
MINIO_SECRET_KEY=xxxx

3. Configure

# serverless.yml
org: acme
app: todo
name: todo-minio-object
component: minio-object@dev
inputs:
 bucket: my-bucket
 src: ../upload # NOTE: this directory should contain the file you want to upload
 name: my-cat-image.jpg # NOTE: this property specifies the file you want to upload

4. Deploy

$ serverless

New to Components?

Checkout the Serverless Components repo for more information.

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /