Skip to content

Commit a5fcccb

Browse files
committed
Move from na-toronto to ap-beijing
1 parent 31b5a3d commit a5fcccb

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

Examples/CloudFunctions/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ lastVersion: $LATEST
7979
traffic: 1
8080
triggers:
8181
apigw:
82-
- http://service-jyl9i6mc-1258834142.gz.apigw.tencentcs.com/release/api
82+
- http://service-jyl9i6mc-1258834142.bj.apigw.tencentcs.com/release/api
8383
8484
Full details: https://serverless.cloud.tencent.com/apps/SwiftAPIGatewayDemo/SwiftAPIGatewayDemo/dev
8585
@@ -89,7 +89,7 @@ Full details: https://serverless.cloud.tencent.com/apps/SwiftAPIGatewayDemo/Swif
8989
For example:
9090

9191
```
92-
curl http://service-jyl9i6mc-1258834142.gz.apigw.tencentcs.com/release/api
92+
curl http://service-jyl9i6mc-1258834142.bj.apigw.tencentcs.com/release/api
9393
```
9494

9595
***Warning:*** This Serverless template is only intended as a sample and creates a publicly accessible HTTP endpoint.

Examples/CloudFunctions/scripts/deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ echo "-------------------------------------------------------------------------"
5656
read -p "Cloud Function name (must exist in SCF): " function_name
5757
function_name=${function_name:-SwiftSample} # default for easy testing
5858

59-
read -p "Cloud Function region (eg: na-toronto): " scf_region
60-
scf_region=${scf_region:-na-toronto} # default for easy testing
59+
read -p "Cloud Function region (eg: ap-beijing): " scf_region
60+
scf_region=${scf_region:-ap-beijing} # default for easy testing
6161

6262
tccli scf UpdateFunctionConfiguration --region "$scf_region" --FunctionName "$function_name" --Runtime "CustomRuntime" --InitTimeout 3
6363
tccli scf UpdateFunctionCode --region "$scf_region" --FunctionName "$function_name" --Handler "swift.main" --CodeSource "Cos" --CosBucketName "$cos_bucket" --CosBucketRegion "$cos_region" --CosObjectName $executable.zip

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs:
77
exclude:
88
- cloud-function.zip
99
runtime: CustomRuntime
10-
region: na-toronto
10+
region: ap-beijing
1111
description: Swift SCF demo for APIGateway
1212
handler: swift.main
1313
memorySize: 64

Examples/CloudFunctions/scripts/serverless/Benchmark/serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs:
77
exclude:
88
- cloud-function.zip
99
runtime: CustomRuntime
10-
region: na-toronto
10+
region: ap-beijing
1111
description: Swift SCF demo for benchmark
1212
handler: swift.main
1313
memorySize: 128

Examples/CloudFunctions/scripts/serverless/CurrencyExchange/serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs:
77
exclude:
88
- cloud-function.zip
99
runtime: CustomRuntime
10-
region: na-toronto
10+
region: ap-beijing
1111
description: Swift SCF demo (currency exchange)
1212
handler: swift.main
1313
memorySize: 64

Examples/CloudFunctions/scripts/serverless/ErrorHandling/serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs:
77
exclude:
88
- cloud-function.zip
99
runtime: CustomRuntime
10-
region: na-toronto
10+
region: ap-beijing
1111
description: Swift SCF demo (error handling)
1212
handler: swift.main
1313
memorySize: 64

Examples/CloudFunctions/scripts/serverless/HelloWorld/serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs:
77
exclude:
88
- cloud-function.zip
99
runtime: CustomRuntime
10-
region: na-toronto
10+
region: ap-beijing
1111
description: Swift SCF demo (hello world)
1212
handler: swift.main
1313
memorySize: 64

Examples/LocalDebugging/MyCloudFunction/scripts/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ set -eu
3030

3131
executable=MyCloudFunction
3232
function_name=swift-sample
33-
scf_region=na-toronto
33+
scf_region=ap-beijing
3434
cos_bucket=swift-scf-test-appid
3535
cos_region=ap-beijing
3636

0 commit comments

Comments
 (0)