Instantly create, update and remove Minio Objects with Serverless Components.
$ npm install -g serverlessJust create a serverless.yml file
$ touch serverless.ymlThen create a .env file
$ touch .envUpdate 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
# serverless.ymlorg: acmeapp: todoname: todo-minio-objectcomponent: minio-object@devinputs:
bucket: my-bucketsrc: ../upload # NOTE: this directory should contain the file you want to uploadname: my-cat-image.jpg # NOTE: this property specifies the file you want to upload$ serverlessCheckout the Serverless Components repo for more information.