Skip to content

Commit c073a16

Browse files
committed
added the command to list service accounts
1 parent e406462 commit c073a16

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

examples/time-series-serverless/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ CREATE TABLE `tsdemo/data1` (
2828
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.
2929
Remember account id, it will be used later to allow access to serverless database.
3030

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+
3136
# Create cloud function
3237
Create cloud function from source code. You should archive source code directory to zip file and upload it into **Cloud functions** section.
3338
Please do not forget to add requirements.txt to this archive.

examples/time-series-serverless/sample-commands.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
yc serverless function create --name=time-series
22

3+
yc iam service-account list
4+
35
yc sls fn version create --service-account-id=ajes0cnn9dkefgjk2eer \
46
--function-name=time-series --runtime python39 --entrypoint time_series.handler \
57
--memory 128m --execution-timeout 60s --source-path time-series-serverless.zip \

0 commit comments

Comments
 (0)