You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/time-series-serverless/README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,26 @@ You should select next values for this example.
13
13
| timestamp | Timestamp | Primary |
14
14
| value | Double ||
15
15
16
-
Remember YDB endpoint, database and table name
16
+
Remember YDB endpoint, database and table name.
17
+
18
+
Or use the following YQL query to create the table:
19
+
```SQL
20
+
CREATE TABLE `tsdemo/data1` (
21
+
`timestamp`Timestamp,
22
+
`value` Double,
23
+
PRIMARY KEY(`timestamp`)
24
+
);
25
+
```
17
26
18
27
## Create Service account
19
28
To create service account you need to go to cloud console to **Service accounts** in left pane and create account with **editor** and **viewer** roles.
20
29
Remember account id, it will be used later to allow access to serverless database.
21
30
31
+
To grab the list of service accounts in the command line, the following can be used:
32
+
```shell
33
+
yc iam service-account list
34
+
```
35
+
22
36
# Create cloud function
23
37
Create cloud function from source code. You should archive source code directory to zip file and upload it into **Cloud functions** section.
24
38
Please do not forget to add requirements.txt to this archive.
@@ -35,7 +49,10 @@ yc serverless function create --name=time-series
35
49
36
50
Next you should upload code and create new version of function via following command:
0 commit comments