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/CloudFunctions/README.md
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,19 +13,21 @@ cd swift-tencent-scf-runtime/Examples/CloudFunctions
13
13
14
14
Note: The example scripts assume you have [jq](https://stedolan.github.io/jq/download/) command line tool installed.
15
15
16
-
## Deployment instructions using TCCLI
16
+
## Deployment instructions using TCCLI and COSCMD
17
17
18
-
Steps to deploy this sample to Tencent SCF Platform using TCCLI:
18
+
Steps to deploy this sample to Tencent SCF Platform using TCCLI and COSCMD:
19
19
20
-
1. Login to SCF Console and create a cloud function
21
-
2. Build, package and deploy the function
20
+
1. Prepare a COS bucket for keeping SCF packages
21
+
2. Login to SCF Console and create a cloud function
22
+
3. Build, package and deploy the function
22
23
23
24
```
24
25
./scripts/deploy.sh
25
26
```
26
27
27
28
Notes:
28
29
- This script assumes you have TCCLI installed and user configured (See https://cloud.tencent.com/document/product/440/34012).
30
+
- This script also assumes you have COSCMD installed and user configured with the same main account as the one in TCCLI (See https://cloud.tencent.com/document/product/436/10976).
29
31
- You'll be prompted to provide the COS bucket ID and region, and the SCF function name and region.
30
32
- Both the cloud function and COS bucket must exist before deploying for the first time.
0 commit comments