{"id":18248182,"url":"https://github.com/serverless-components/tencent-multi-scf","last_synced_at":"2025-08-05T04:03:21.084Z","repository":{"id":40393563,"uuid":"372679068","full_name":"serverless-components/tencent-multi-scf","owner":"serverless-components","description":"腾讯云多云函数管理组件","archived":false,"fork":false,"pushed_at":"2023-06-01T02:17:28.000Z","size":88,"stargazers_count":8,"open_issues_count":2,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-04T15:40:04.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serverless-components.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-01T02:26:51.000Z","updated_at":"2023-12-21T06:26:57.000Z","dependencies_parsed_at":"2025-04-04T15:43:20.060Z","dependency_job_id":null,"html_url":"https://github.com/serverless-components/tencent-multi-scf","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/serverless-components/tencent-multi-scf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-multi-scf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-multi-scf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-multi-scf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-multi-scf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serverless-components","download_url":"https://codeload.github.com/serverless-components/tencent-multi-scf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless-components%2Ftencent-multi-scf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268830884,"owners_count":24314086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T09:36:10.419Z","updated_at":"2025-08-05T04:03:21.041Z","avatar_url":"https://github.com/serverless-components.png","language":"TypeScript","readme":"## 腾讯云多函数管理流组件\n\n腾讯云多函数管理，方便用户管理多云函数应用。\n\n## 快速开始\n\n1. [**安装**](#1-安装)\n2. [**配置**](#2-配置)\n3. [**部署**](#3-部署)\n4. [**查看状态**](#4-查看状态)\n5. [**移除**](#5-移除)\n\n更多资源：\n\n- [**账号配置**](#账号配置)\n\n### 1. 安装\n\n通过 `npm` 安装最新版本的 Serverless CLI\n\n```bash\n$ npm install -g serverless\n```\n\n### 2. 配置\n\n以下是 `multi-scf` 组件的 `serverless.yml` 配置示例：\n\n```yml\napp: multi-scf\nstage: dev\n\ncomponent: multi-scf\nname: demo\n\ninputs:\n  src:\n    src: ./\n    exclude:\n      - .env\n  region: ap-guangzhou\n  runtime: Nodejs12.16\n  memorySize: 128\n  timeout: 3\n  functions:\n    index:\n      handler: app.index\n    userList:\n      handler: app.userList\n      memorySize: 256\n      timeout: 10\n  triggers:\n    - type: apigw\n      parameters:\n        name: serverless\n        protocols:\n          - https\n          - http\n        apis:\n          - path: /\n            method: GET\n            function: index\n          - path: /\n            method: POST\n            function: userList\n```\n\n点此查看[全量配置及配置说明](./docs/configure.md)\n\n### 3. 部署\n\n在 `serverless.yml` 文件所在的项目根目录，运行以下指令进行部署：\n\n```bash\n$ serverless deploy\n```\n\n部署时需要进行身份验证，如您的账号未 [登陆](https://cloud.tencent.com/login) 或 [注册](https://cloud.tencent.com/register) 腾讯云，您可以直接通过 `微信` 扫描命令行中的二维码进行授权登陆和注册。\n\n\u003e 注意: 如果希望查看更多部署过程的信息，可以通过 `serverless deploy --debug` 命令查看部署过程中的实时日志信息。\n\n- [点击此处查看输出文档](./docs/output.md)\n\n### 4. 查看状态\n\n在`serverless.yml`文件所在的目录下，通过如下命令查看部署状态：\n\n```\n$ serverless info\n```\n\n### 5. 移除\n\n在`serverless.yml`文件所在的目录下，通过以下命令移除部署的 Express 服务。移除后该组件会对应删除云上部署时所创建的所有相关资源。\n\n```\n$ serverless remove\n```\n\n和部署类似，支持通过 `serverless remove --debug` 命令查看移除过程中的实时日志信息。\n\n## 账号配置\n\n当前默认支持 CLI 扫描二维码登录，如您希望配置持久的环境变量/秘钥信息，也可以本地创建 `.env` 文件\n\n```console\n$ touch .env # 腾讯云的配置信息\n```\n\n在 `.env` 文件中配置腾讯云的 SecretId 和 SecretKey 信息并保存\n\n如果没有腾讯云账号，可以在此[注册新账号](https://cloud.tencent.com/register)。\n\n如果已有腾讯云账号，可以在[API 密钥管理](https://console.cloud.tencent.com/cam/capi)中获取 `SecretId` 和`SecretKey`.\n\n```\n# .env\nTENCENT_SECRET_ID=123\nTENCENT_SECRET_KEY=123\n```\n\n## License\n\nMIT License\n\nCopyright (c) 2020 Tencent Cloud, Inc.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless-components%2Ftencent-multi-scf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserverless-components%2Ftencent-multi-scf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless-components%2Ftencent-multi-scf/lists"}