Skip to content

Commit 90d128b

Browse files
committed
Fix deploy
1 parent a5fcccb commit 90d128b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Examples/CloudFunctions/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,21 @@ cd swift-tencent-scf-runtime/Examples/CloudFunctions
1313

1414
Note: The example scripts assume you have [jq](https://stedolan.github.io/jq/download/) command line tool installed.
1515

16-
## Deployment instructions using TCCLI
16+
## Deployment instructions using TCCLI and COSCMD
1717

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:
1919

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
2223

2324
```
2425
./scripts/deploy.sh
2526
```
2627

2728
Notes:
2829
- 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).
2931
- You'll be prompted to provide the COS bucket ID and region, and the SCF function name and region.
3032
- Both the cloud function and COS bucket must exist before deploying for the first time.
3133

Examples/CloudFunctions/scripts/serverless/APIGateway/serverless.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ inputs:
1515
initTimeout: 3
1616
events:
1717
- apigw:
18-
name: apigateway-swift-apigw
18+
name: swift-scf-apigw
1919
parameters:
2020
protocols:
2121
- http
2222
- https
23-
serviceName:
23+
serviceName: SwiftAPIGatewayDemo
2424
description: Swift SCF demo for APIGateway
2525
environment: release
2626
endpoints:

0 commit comments

Comments
 (0)