nero-sls-cos
v1.0.0
Published
[简体中文](https://github.com/serverless-components/tencent-cos/tree/master/README.md) | English
Readme
Tencent Cloud Object Storage Component
简体中文 | English
Instantly deploy & manage Tencent Cloud Object Storage buckets with Serverless Components.
1. Install
$ npm install -g serverless2. Create
Just create serverless.yml and .env files
$ touch serverless.yml
$ touch .env # your Tencent API KeysAdd 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-guangzhou4. Deploy
$ sls deploy5. Remove
NOTE: Removing the service will cause the used bucket to be emptied and removed as well. This operation cannot be undone.
$ sls removeNew to Components?
Checkout the Serverless Components repo for more information.
License
MIT License
Copyright (c) 2020 Tencent Cloud, Inc.
