1.0.0 • Published 4 years ago

nero-sls-cos v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Tencent Cloud Object Storage Component

简体中文 | English

Instantly deploy & manage Tencent Cloud Object Storage buckets with Serverless Components.

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

 

1. Install

$ npm install -g serverless

2. Create

Just create serverless.yml and .env files

$ touch serverless.yml
$ touch .env # your Tencent API Keys

Add the access keys of a Tencent CAM Role with AdministratorAccess in the .env file, using this format:

# .env
TENCENT_SECRET_ID=123
TENCENT_SECRET_KEY=123
  • If you don't have a Tencent Cloud account, you could sign up first.

3. Configure

# serverless.yml

org: orgDemo
app: appDemo
stage: dev
component: cos
name: cosDemo

inputs:
  bucket: my-bucket
  region: ap-guangzhou

4. Deploy

$ sls deploy

5. Remove

NOTE: Removing the service will cause the used bucket to be emptied and removed as well. This operation cannot be undone.

$ sls remove

New to Components?

Checkout the Serverless Components repo for more information.

License

MIT License

Copyright (c) 2020 Tencent Cloud, Inc.

1.0.0

4 years ago