All Projects → serverless-components → tencent-cam-role

serverless-components / tencent-cam-role

Licence: other
Easily provision Tencent CAM roles using Serverless Components

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tencent-cam-role

tencent-cam-policy
Easily create an Tencent CAM Policy with Serverless Components
Stars: ✭ 20 (+5.26%)
Mutual labels:  serverless-framework, tencent, tencent-cloud, tencent-cam
tencent-apigateway
Easily provision Tencent API Gateway using Serverless Components
Stars: ✭ 33 (+73.68%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
tencent-scf
Deploy Tencent Cloud Serverless Cloud Function in seconds with Serverless Components.
Stars: ✭ 86 (+352.63%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
serverless-tencent-scf
Add support for Tencent Cloud's serverless infrastructure to the Serverless Framework via this plugin
Stars: ✭ 53 (+178.95%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
tencent-tensorflow-scf
A template project for serverless functions for Tensorflow inference on Tencent Cloud.
Stars: ✭ 38 (+100%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
Tencent Express
Easily deploy serverless Express.js applications to Tencent Cloud with the Serverless Framework
Stars: ✭ 96 (+405.26%)
Mutual labels:  serverless-framework, tencent
flutter superplayer
适用于 Flutter 的腾讯云超级播放器插件
Stars: ✭ 13 (-31.58%)
Mutual labels:  tencent, tencent-cloud
serverless-ts-template
Serverless Typescript Template
Stars: ✭ 13 (-31.58%)
Mutual labels:  serverless-framework
aws-serverless-demo
AWS Serverless demo using S3, API Gateway, Lambda, Node.js and SimpleDB
Stars: ✭ 25 (+31.58%)
Mutual labels:  serverless-framework
cordova-plugin-tencent-liteav
A cordova plugin for video playing with Tencent's LiteAV SDK. Support RTMP/HLS/FLV/MP4.
Stars: ✭ 24 (+26.32%)
Mutual labels:  tencent
aws-swaggerui
Serverless Swagger UI for API Gateway
Stars: ✭ 26 (+36.84%)
Mutual labels:  serverless-framework
amazon-ivs-ecommerce-web-demo
This repository shows how you can build a compelling eCommerce experience with Amazon IVS.
Stars: ✭ 19 (+0%)
Mutual labels:  serverless-framework
cmq-go
Tencent CMQ Golang SDK
Stars: ✭ 20 (+5.26%)
Mutual labels:  tencent
serverless-react-server-side-render
A Demo of Serverless Framework with React Server Side Render
Stars: ✭ 20 (+5.26%)
Mutual labels:  serverless-framework
serverless-rack
Serverless plugin to deploy Ruby Rack applications (Sinatra/Rails/Padrino/Cuba etc.) and bundle gems
Stars: ✭ 58 (+205.26%)
Mutual labels:  serverless-framework
amazon-ivs-simple-chat-web-demo
⚠️ IMPORTANT ⚠️ This repository is no longer actively maintained and will be archived at the end of 2022. A basic live chat implementation built with WebSockets, that can be used in conjunction with Amazon IVS to build compelling customer experiences for live video streams with chat use cases.
Stars: ✭ 53 (+178.95%)
Mutual labels:  serverless-framework
qqmessageoutput
安卓QQ聊天记录导出
Stars: ✭ 100 (+426.32%)
Mutual labels:  tencent
tencent-ai
腾讯AI开放平台 【Tencent AI open platform】
Stars: ✭ 68 (+257.89%)
Mutual labels:  tencent
twitter
A serverless social network that's under development with some cool stuff, such as Serverless Framework, AppSync, GraphQL, Lambda, DynamoDB, Cognito, Kinesis Firehose, and Algolia ☁️
Stars: ✭ 29 (+52.63%)
Mutual labels:  serverless-framework
nuxt-on-lambda
Nuxt.jsをAWS Lambdaで動かす
Stars: ✭ 78 (+310.53%)
Mutual labels:  serverless-framework

腾讯云访问管理CAM-role组件

 

简介

该组件是serverless-tencent组件库中的基础组件之一。通过访问管理CAM-role组件,可以快速,方便的创建,配置和管理腾讯云的CAM角色

快速开始

通过CAM-role组件,对一个CAM的角色进行完整的创建,配置,部署和删除等操作。支持命令如下:

  1. 安装
  2. 创建
  3. 配置
  4. 部署
  5. 移除

1. 安装

通过npm安装serverless

$ npm install -g serverless

2. 创建

本地创建 serverless.yml.env 两个文件

$ touch serverless.yml
$ touch .env # 腾讯云的配置信息

.env 文件中配置腾讯云的APPID,SecretId和SecretKey信息并保存

如果没有腾讯云账号,可以在此注册新账号

如果已有腾讯云账号,可以在API密钥管理 中获取APPID, SecretIdSecretKey.

# .env
TENCENT_SECRET_ID=123
TENCENT_SECRET_KEY=123

3. 配置

在serverless.yml中进行如下配置

# serverless.yml

# serverless.yml

myRole:
  component: "@serverless/tencent-cam-role"
  inputs:
    roleName: QCS_SCFExcuteRole
    service:
      - scf.qcloud.com
      - cos.qcloud.com
    policy:      
      policyName:
        - QCloudResourceFullAccess
        - QcloudAccessForCDNRole

4. 部署

通过如下命令进行部署,并查看部署过程中的信息

$ sls --debug

  DEBUG ─ Resolving the template's static variables.
  DEBUG ─ Collecting components from the template.
  DEBUG ─ Downloading any NPM components found in the template.
  DEBUG ─ Analyzing the template's components dependencies.
  DEBUG ─ Creating the template's components graph.
  DEBUG ─ Syncing template state.
  DEBUG ─ Executing the template's components graph.
  DEBUG ─ Syncing role c0hhdv-qt9mh6xj in region ap-guangzhou.
  DEBUG ─ Updating policy for role c0hhdv-qt9mh6xj.
  DEBUG ─ Saved state for role c0hhdv-qt9mh6xj.
  DEBUG ─ Role c0hhdv-qt9mh6xj was successfully deployed to region ap-guangzhou.
  DEBUG ─ Deployed role roleId is 4611686018427945536.

  myRole: 
    roleName:    QCS_SCFExcuteRole
    description: This is tencent-cam-role component.
    roleId:      4611686018427945536
    service: 
      - cos.qcloud.com
      - scf.qcloud.com
    policy: 
      policyId: 
        - 16313162
        - 2
      policyName: 
        - QCloudResourceFullAccess
        - QcloudAccessForCDNRole

  17s › myRole › done

 

5. 移除

$ sls remove --debug

  DEBUG ─ Flushing template state and removing all components.
  DEBUG ─ Removing role c0hhdv-qt9mh6xj from region ap-guangzhou.
  DEBUG ─ Role c0hhdv-qt9mh6xj successfully removed from region ap-guangzhou.

  1s › myRole › done

### 还支持哪些组件?

可以在 [Serverless Components](https://github.com/serverless/components) repo 中查询更多组件的信息。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].