-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.yaml
47 lines (46 loc) · 1.43 KB
/
template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Resources:
default:
Type: TencentCloud::Serverless::Namespace
scf_devops_demo:
Type: TencentCloud::Serverless::Function
Properties:
CodeUri: ./
Description: This is a template function
Environment:
Variables:
ENV_FIRST: env1
ENV_SECOND: env2
Handler: index.main_handler
MemorySize: 128
Runtime: Python2.7
Timeout: 3
#VpcConfig:
# VpcId: 'vpc-qdqc5k2p'
# SubnetId: 'subnet-pad6l61i'
#Events:
# timer:
# Type: Timer
# Properties:
# CronExpression: '*/5 * * * *'
# Enable: True
# cli-appid.cos.ap-beijing.myqcloud.com: # full bucket name
# Type: COS
# Properties:
# Bucket: cli-appid.cos.ap-beijing.myqcloud.com
# Filter:
# Prefix: filterdir/
# Suffix: .jpg
# Events: cos:ObjectCreated:*
# Enable: True
# topic: # topic name
# Type: CMQ
# Properties:
# Name: qname
# hello_world_apigw: # ${FunctionName} + '_apigw'
# Type: APIGW
# Properties:
# StageName: release
# HttpMethod: ANY
Globals:
Function:
Timeout: 10