-
Notifications
You must be signed in to change notification settings - Fork 701
Expand file tree
/
Copy pathcloud_function.yaml
More file actions
35 lines (34 loc) · 932 Bytes
/
cloud_function.yaml
File metadata and controls
35 lines (34 loc) · 932 Bytes
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
imports:
- path: cloud_function.py
# The function code will be defined for the files in function/
- path: function/index.js
- path: function/package.json
resources:
- name: function
type: cloud_function.py
properties:
# All the files that start with this prefix will be packed in the Cloud Function
codeLocation: function/
codeBucket: isolated-bucket-do-not-delete
codeBucketObject: function.zip
location: us-central1
timeout: 60s
runtime: nodejs8
availableMemoryMb: 256
entryPoint: handler
- name: function-call
action: gcp-types/cloudfunctions-v1:cloudfunctions.projects.locations.functions.call
properties:
name: $(ref.function.name)
data: |
{
"message": "hola, mundo"
}
metadata:
runtimePolicy:
- UPDATE_ALWAYS
outputs:
- name: function-output
value: $(ref.function-call.result)
- name: function-code
value: $(ref.function.sourceArchiveUrl)