All Projects → serverless-tencent → serverless-tencent-scf

serverless-tencent / serverless-tencent-scf

Licence: other
Add support for Tencent Cloud's serverless infrastructure to the Serverless Framework via this plugin

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to serverless-tencent-scf

tencent-scf
Deploy Tencent Cloud Serverless Cloud Function in seconds with Serverless Components.
Stars: ✭ 86 (+62.26%)
Mutual labels:  serverless-framework, tencent, cloud-function, tencent-cloud
tencent-cam-policy
Easily create an Tencent CAM Policy with Serverless Components
Stars: ✭ 20 (-62.26%)
Mutual labels:  serverless-framework, cloud-computing, tencent, tencent-cloud
tencent-cam-role
Easily provision Tencent CAM roles using Serverless Components
Stars: ✭ 19 (-64.15%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
tencent-apigateway
Easily provision Tencent API Gateway using Serverless Components
Stars: ✭ 33 (-37.74%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
tencent-tensorflow-scf
A template project for serverless functions for Tensorflow inference on Tencent Cloud.
Stars: ✭ 38 (-28.3%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
Tencent Express
Easily deploy serverless Express.js applications to Tencent Cloud with the Serverless Framework
Stars: ✭ 96 (+81.13%)
Mutual labels:  serverless-framework, tencent
flutter superplayer
适用于 Flutter 的腾讯云超级播放器插件
Stars: ✭ 13 (-75.47%)
Mutual labels:  tencent, tencent-cloud
cordova-plugin-tencent-liteav
A cordova plugin for video playing with Tencent's LiteAV SDK. Support RTMP/HLS/FLV/MP4.
Stars: ✭ 24 (-54.72%)
Mutual labels:  tencent
hysds
Hybrid Cloud Science Data System Framework
Stars: ✭ 15 (-71.7%)
Mutual labels:  cloud-computing
ceu-cloud-class
This is the repo for the Data Engineering 3 - Cloud and Big Data Computing course delivered at the Central European University ceu.edu
Stars: ✭ 15 (-71.7%)
Mutual labels:  cloud-computing
aws-swaggerui
Serverless Swagger UI for API Gateway
Stars: ✭ 26 (-50.94%)
Mutual labels:  serverless-framework
serverless-react-server-side-render
A Demo of Serverless Framework with React Server Side Render
Stars: ✭ 20 (-62.26%)
Mutual labels:  serverless-framework
Distributed-System-Algorithms-Implementation
Algorithms for implementation of Clock Synchronization, Consistency, Mutual Exclusion, Leader Election
Stars: ✭ 39 (-26.42%)
Mutual labels:  cloud-computing
gcpy
Python toolkit for GEOS-Chem.
Stars: ✭ 34 (-35.85%)
Mutual labels:  cloud-computing
cuda memtest
Fork of CUDA GPU memtest 👓
Stars: ✭ 68 (+28.3%)
Mutual labels:  cloud-computing
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 (+0%)
Mutual labels:  serverless-framework
cmq-go
Tencent CMQ Golang SDK
Stars: ✭ 20 (-62.26%)
Mutual labels:  tencent
IoTCodeRecipes
IoT Code Recipes: RPL, mDNS and REST
Stars: ✭ 19 (-64.15%)
Mutual labels:  cloud-computing
hyper-kube-config
H Y P E R K U B E - A Serverless API and kubectl plugin providing a storage and retrieval Kubernetes cluster credentials. Hyperkube leverages AWS Secrets Manager for storing credential information.
Stars: ✭ 27 (-49.06%)
Mutual labels:  serverless-framework
nestjs-graphql-serverless
Boilerplate for using NestJS with GraphQL (Code-First) on serverless environment (AWS Lambda)
Stars: ✭ 64 (+20.75%)
Mutual labels:  serverless-framework

npm version Build Status

Serverless Framework Tencent Cloud Plugin

Quick Start

Complete the steps in this guide to install the Serverless Framework open-source CLI and deploy a sample Service on Tencent Cloud that reports deployment information and operational metrics to the Serverless Framework.

Initial Setup

There are a few prerequisites you need to install and configure:

If you already have these prerequisites setup you can skip ahead to deploy an example Service.

Install Node.js and NPM

  • Follow these installation instructions.
  • At the end, you should be able to run node -v from your command line and get a result like this...
$ node -v
vx.x.x
  • You should also be able to run npm -v from your command line and should see...
$ npm -v
x.x.x

Install the Serverless Framework open-source CLI

  • Run this command in your terminal
npm install -g serverless
  • After install is complete, you should be able to run serverless -v from your command line and get a result like this...
$ serverless -v
x.x.x

Create and deploy a serverless Service

Now that you’ve completed your setup, let’s create and deploy a serverless Service.

Create a new Service from a Template

  1. Use the Serverless Framework open-source CLI to create a new Service with tencent-nodejstemplate.
# Create a new Serverless service/project
$ serverless create --template tencent-nodejs --path my-service

2. Install the dependencies

```sh
# Change into the newly created directory
$ cd my-service
$ npm install

Set up the credentials

Configure your Tencent Cloud account to work with the Serverless Framework.

Set up an endpoint

An Event is anything that can trigger your serverless functions. In this case, you need to define a endpoint in your serverless.yml that will trigger your serverless function.

service: my-service # service name

provider: # provider information
  name: tencent
  runtime: Nodejs8.9
  credentials: ~/credentials

plugins:
  - serverless-tencent-scf

functions:
  function_one:
    handler: index.main_handler
    runtime: Nodejs8.9
    events:
        - apigw:
           name: hello_world_apigw
           parameters:
             stageName: release
             serviceId:
             httpMethod: ANY

Deploy the Service

Use this command to deploy your service for the first time and after you make changes to your Functions, Events or Resources in serverless.yml and want to deploy all changes within your Service at the same time.

serverless deploy

More information in deploy command

Test your Service

Replace the URL in the following curl command with your returned endpoint URL, which you can find in the sls deploy output, to hit your URL endpoint.

$ curl -X POST https://service-xxxx-1300000000.ap-guangzhou.apigateway.myqcloud.com/release/

Invoke your Service's function

Invokes a Function and returns logs.

serverless invoke -f hello

More information in invoke command

Fetch the Function Logs

Open up a separate tab in your console and stream all logs for a specific Function using this command.

serverless logs -f hello -t

Cleanup

Remove your Service

If at any point you no longer need your Service, you can run the following command to remove the Functions, Events and Resources that were created. This will delete the resources you created and ensure that you don't incur any unexpected charges.

serverless remove
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].