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

serverless-components / tencent-cam-policy

Licence: Apache-2.0 license
Easily create an Tencent CAM Policy with Serverless Components

Programming Languages

javascript
184084 projects - #8 most used programming language

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

serverless-tencent-scf
Add support for Tencent Cloud's serverless infrastructure to the Serverless Framework via this plugin
Stars: ✭ 53 (+165%)
Mutual labels:  serverless-framework, cloud-computing, tencent, tencent-cloud
tencent-cam-role
Easily provision Tencent CAM roles using Serverless Components
Stars: ✭ 19 (-5%)
Mutual labels:  serverless-framework, tencent, tencent-cloud, tencent-cam
tencent-scf
Deploy Tencent Cloud Serverless Cloud Function in seconds with Serverless Components.
Stars: ✭ 86 (+330%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
tencent-apigateway
Easily provision Tencent API Gateway using Serverless Components
Stars: ✭ 33 (+65%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
tencent-tensorflow-scf
A template project for serverless functions for Tensorflow inference on Tencent Cloud.
Stars: ✭ 38 (+90%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
flutter superplayer
适用于 Flutter 的腾讯云超级播放器插件
Stars: ✭ 13 (-35%)
Mutual labels:  tencent, tencent-cloud
Tencent Express
Easily deploy serverless Express.js applications to Tencent Cloud with the Serverless Framework
Stars: ✭ 96 (+380%)
Mutual labels:  serverless-framework, tencent
2018-Tencent-Lookalike
2018-腾讯广告算法大赛-相似人群拓展(初赛):10th/1563 (Top 0.64%)
Stars: ✭ 46 (+130%)
Mutual labels:  tencent
CloudMinecraft
Create a minecraft server with TencentCloud API when the worlds are saved in another Student's Cloud.
Stars: ✭ 11 (-45%)
Mutual labels:  tencent-cloud
serverless-authorizers
Examples to use aws API Gateway authorizer feature to authorize your endpoints with different ways
Stars: ✭ 31 (+55%)
Mutual labels:  serverless-framework
PainlessDocker
Painless Docker book git repository.
Stars: ✭ 17 (-15%)
Mutual labels:  cloud-computing
theeye-of-sauron
TheEye Dockers and QuickStart
Stars: ✭ 27 (+35%)
Mutual labels:  cloud-computing
serverless-fission
Use Fission through Serverless Framework https://serverless.com
Stars: ✭ 19 (-5%)
Mutual labels:  serverless-framework
MicrosoftCloudWorkshop-Asia
Microsoft Cloud Workshop Asia for Intelligent Cloud / Intelligent Edge
Stars: ✭ 20 (+0%)
Mutual labels:  cloud-computing
cloudwatch-public-metrics
Expose AWS Cloudwatch Metrics as a public HTML page using AWS Lambda and server-side rendering
Stars: ✭ 27 (+35%)
Mutual labels:  serverless-framework
NoWordsChat
No Words Chat,Just For Fun! Use MVVM,DataBinding,Fresco......
Stars: ✭ 46 (+130%)
Mutual labels:  tencent
datajoint-python
Relational data pipelines for the science lab
Stars: ✭ 140 (+600%)
Mutual labels:  cloud-computing
infra
Infrastructure management for Google Cloud Platform
Stars: ✭ 14 (-30%)
Mutual labels:  cloud-computing
Host-Load-Prediction-with-LSTM
host load prediction with Long Short-Term Memory in cloud computing
Stars: ✭ 28 (+40%)
Mutual labels:  cloud-computing
a-crash-course-on-serverless-with-nodejs
A quick and easy guide of how to hook up a single Serverless service.
Stars: ✭ 28 (+40%)
Mutual labels:  serverless-framework

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

 

简介

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

快速开始

通过CAM-policy组件,对一个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

myPolicy:
  component: "@serverless/tencent-cam-policy"
  inputs:
    name: my-policy
    description: A policy created by Serverless Components
    policy:
      statement:
        - effect: allow
          action:
            - cos:GetService
          resource: '*'

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.

  myPolicy: 
    id: 27710257

  7s › myPolicy › done

5. 移除

$ sls remove --debug

  DEBUG ─ Flushing template state and removing all components.

  1s › myPolicy › done

还支持哪些组件?

可以在 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].