-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from serverless-tencent/remove_appid
remove appid
- Loading branch information
Showing
7 changed files
with
264 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# Serverless.yml Reference | ||
Here is a list of all available properties in serverless.yml when the provider is set to tencent. | ||
```yaml | ||
# Welcome to Serverless! | ||
# | ||
# This file is the main config file for your service. | ||
# It's very minimal at this point and uses default values. | ||
# You can always add more config options for more control. | ||
# We've included some commented out config examples here. | ||
# Just uncomment any of them to get that config option. | ||
# | ||
# For full config options, check the docs: | ||
# docs.serverless.com | ||
# | ||
# Happy Coding! | ||
|
||
service: my-service # service name | ||
|
||
provider: # provider information | ||
name: tencent | ||
runtime: Nodejs8.9 # Nodejs8.9 or Nodejs6.10 | ||
credentials: ~/credentials | ||
|
||
# you can overwrite defaults here | ||
# stage: dev | ||
# cosBucket: DEFAULT | ||
# role: QCS_SCFExcuteRole | ||
# memorySize: 256 | ||
# timeout: 10 | ||
# region: ap-shanghai | ||
# environment: | ||
# variables: | ||
# ENV_FIRST: env1 | ||
# ENV_SECOND: env2 | ||
# vpcConfig: | ||
# vpcId: test | ||
# subnetId: test | ||
|
||
plugins: | ||
- serverless-tencent-scf | ||
|
||
# you can add packaging information here | ||
#package: | ||
# include: | ||
# - include-me.js | ||
# - include-me-dir/** | ||
# exclude: | ||
# - exclude-me.js | ||
# - exclude-me-dir/** | ||
|
||
functions: | ||
function_one: | ||
handler: index.main_handler | ||
# description: Tencent Serverless Cloud Function | ||
# runtime: Nodejs8.9 # Nodejs8.9 or Nodejs6.10 | ||
# memorySize: 256 | ||
# timeout: 10 | ||
# environment: | ||
# variables: | ||
# ENV_FIRST: env1 | ||
# ENV_Third: env2 | ||
# vpcConfig: | ||
# vpcId: test | ||
# subnetId: test | ||
# events: | ||
# - timer: | ||
# name: timer | ||
# parameters: | ||
# cronExpression: '*/5 * * * *' | ||
# enable: true | ||
# - cos: | ||
# name: cli-appid.cos.ap-beijing.myqcloud.com | ||
# parameters: | ||
# bucket: cli-appid.cos.ap-beijing.myqcloud.com | ||
# filter: | ||
# prefix: filterdir/ | ||
# suffix: .jpg | ||
# events: cos:ObjectCreated:* | ||
# enable: true | ||
# - apigw: | ||
# name: hello_world_apigw | ||
# parameters: | ||
# stageName: release | ||
# serviceId: | ||
# httpMethod: ANY | ||
# - cmq: | ||
# name: cmq_trigger | ||
# parameters: | ||
# name: test-topic-queue | ||
# enable: true | ||
# - ckafka: | ||
# name: ckafka_trigger | ||
# parameters: | ||
# name: ckafka-2o10hua5 | ||
# topic: test | ||
# maxMsgNum: 999 | ||
# offset: latest | ||
# enable: true | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# Serverless.yml 参考 | ||
以下是当提供商设置为tencent时,serverless.yml中所有可用属性的列表。 | ||
```yaml | ||
# Welcome to Serverless! | ||
# | ||
# This file is the main config file for your service. | ||
# It's very minimal at this point and uses default values. | ||
# You can always add more config options for more control. | ||
# We've included some commented out config examples here. | ||
# Just uncomment any of them to get that config option. | ||
# | ||
# For full config options, check the docs: | ||
# docs.serverless.com | ||
# | ||
# Happy Coding! | ||
|
||
service: my-service # service name | ||
|
||
provider: # provider information | ||
name: tencent | ||
runtime: Nodejs8.9 # Nodejs8.9 or Nodejs6.10 | ||
credentials: ~/credentials | ||
|
||
# you can overwrite defaults here | ||
# stage: dev | ||
# cosBucket: DEFAULT | ||
# role: QCS_SCFExcuteRole | ||
# memorySize: 256 | ||
# timeout: 10 | ||
# region: ap-shanghai | ||
# environment: | ||
# variables: | ||
# ENV_FIRST: env1 | ||
# ENV_SECOND: env2 | ||
# vpcConfig: | ||
# vpcId: test | ||
# subnetId: test | ||
|
||
plugins: | ||
- serverless-tencent-scf | ||
|
||
# you can add packaging information here | ||
#package: | ||
# include: | ||
# - include-me.js | ||
# - include-me-dir/** | ||
# exclude: | ||
# - exclude-me.js | ||
# - exclude-me-dir/** | ||
|
||
functions: | ||
function_one: | ||
handler: index.main_handler | ||
# description: Tencent Serverless Cloud Function | ||
# runtime: Nodejs8.9 # Nodejs8.9 or Nodejs6.10 | ||
# memorySize: 256 | ||
# timeout: 10 | ||
# environment: | ||
# variables: | ||
# ENV_FIRST: env1 | ||
# ENV_Third: env2 | ||
# vpcConfig: | ||
# vpcId: test | ||
# subnetId: test | ||
# events: | ||
# - timer: | ||
# name: timer | ||
# parameters: | ||
# cronExpression: '*/5 * * * *' | ||
# enable: true | ||
# - cos: | ||
# name: cli-appid.cos.ap-beijing.myqcloud.com | ||
# parameters: | ||
# bucket: cli-appid.cos.ap-beijing.myqcloud.com | ||
# filter: | ||
# prefix: filterdir/ | ||
# suffix: .jpg | ||
# events: cos:ObjectCreated:* | ||
# enable: true | ||
# - apigw: | ||
# name: hello_world_apigw | ||
# parameters: | ||
# stageName: release | ||
# serviceId: | ||
# httpMethod: ANY | ||
# - cmq: | ||
# name: cmq_trigger | ||
# parameters: | ||
# name: test-topic-queue | ||
# enable: true | ||
# - ckafka: | ||
# name: ckafka_trigger | ||
# parameters: | ||
# name: ckafka-2o10hua5 | ||
# topic: test | ||
# maxMsgNum: 999 | ||
# offset: latest | ||
# enable: true | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters