nero-sls-cos
v1.0.0
Published
[简体中文](https://github.com/serverless-components/tencent-cos/tree/master/README.md) | English
Downloads
3
Readme
Tencent Cloud Object Storage Component
简体中文 | English
Instantly deploy & manage Tencent Cloud Object Storage buckets with Serverless Components.
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.