@geek-fun/serverlessinsight 0.9.4 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +5 -2
- package/CHANGELOG.md +44 -0
- package/README.md +26 -6
- package/README.zh-CN.md +26 -6
- package/codecov +0 -0
- package/codecov.SHA256SUM +1 -1
- package/codecov.SHA256SUM.sig +13 -13
- package/dist/package.json +1 -1
- package/dist/src/commands/deploy.js +7 -2
- package/dist/src/commands/destroy.js +6 -3
- package/dist/src/commands/forceUnlock.js +16 -21
- package/dist/src/commands/index.js +14 -4
- package/dist/src/commands/migrate.js +105 -132
- package/dist/src/commands/plan.js +2 -2
- package/dist/src/commands/show.js +17 -6
- package/dist/src/common/aggregateState.js +185 -0
- package/dist/src/common/aggregateStore.js +247 -0
- package/dist/src/common/apiClient.js +35 -12
- package/dist/src/common/constants.js +2 -1
- package/dist/src/common/context.js +22 -15
- package/dist/src/common/effectiveConfig.js +48 -0
- package/dist/src/common/iacHelper.js +2 -2
- package/dist/src/common/index.js +5 -0
- package/dist/src/common/jsonOutput.js +2 -13
- package/dist/src/common/migrationMarker.js +0 -7
- package/dist/src/common/nameBuilder.js +2 -3
- package/dist/src/common/regionalMigration.js +261 -0
- package/dist/src/common/saasProtocol.js +41 -0
- package/dist/src/common/stateBackend/cosStateBackend.js +88 -8
- package/dist/src/common/stateBackend/index.js +42 -18
- package/dist/src/common/stateBackend/localStateBackend.js +61 -26
- package/dist/src/common/stateBackend/ossStateBackend.js +62 -9
- package/dist/src/common/stateBackend/remoteStateBackend.js +94 -94
- package/dist/src/common/stateBackend/saasStateBackend.js +327 -92
- package/dist/src/common/stateBackend/types.js +9 -0
- package/dist/src/common/stateManager.js +38 -11
- package/dist/src/common/stateScope.js +34 -0
- package/dist/src/common/stateStorageIO.js +31 -0
- package/dist/src/lang/en.js +43 -2
- package/dist/src/lang/zh-CN.js +43 -2
- package/dist/src/parser/index.js +33 -8
- package/dist/src/parser/templateValues.js +31 -0
- package/dist/src/stack/aliyunStack/deployer.js +5 -5
- package/dist/src/stack/aliyunStack/destroyer.js +5 -5
- package/dist/src/stack/aliyunStack/fc3Planner.js +1 -1
- package/dist/src/stack/aliyunStack/fc3Resource.js +2 -2
- package/dist/src/stack/aliyunStack/planner.js +1 -1
- package/dist/src/stack/aliyunStack/sharedLogProject.js +2 -2
- package/dist/src/stack/ownershipTag.js +34 -26
- package/dist/src/stack/scfStack/deployer.js +5 -5
- package/dist/src/stack/scfStack/destroyer.js +5 -6
- package/dist/src/stack/scfStack/planner.js +1 -1
- package/dist/src/stack/scfStack/scfResource.js +1 -1
- package/dist/src/stack/scfStack/sharedLogset.js +5 -2
- package/dist/src/stack/volcengineStack/deployer.js +3 -3
- package/dist/src/stack/volcengineStack/destroyer.js +2 -3
- package/dist/src/stack/volcengineStack/planner.js +1 -1
- package/dist/src/stack/volcengineStack/sharedLogProject.js +4 -4
- package/dist/src/stack/volcengineStack/vefaasResource.js +1 -1
- package/dist/src/types/domains/state.js +28 -2
- package/dist/src/validator/index.js +3 -1
- package/dist/src/validator/rootSchema.js +8 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/release-notes.md +8 -36
- package/samples/README_TENCENT_COS.md +65 -23
- package/samples/README_TENCENT_SCF.md +44 -26
- package/.serverlessinsight/state-cdn-flow-app-cdn-flow-service.json.backup +0 -14
- package/.serverlessinsight/state-iam-test-app-iam-test-service.json.backup +0 -32
- package/.serverlessinsight/state-insight-poc-app-insight-poc-tencent.json.backup +0 -90
- package/.serverlessinsight/state-insight-poc-app-log-insight-poc-tencent-log.json.backup +0 -118
- package/.serverlessinsight/state-insight-poc-deploy-app-insight-poc-deploy.json.backup +0 -215
- package/.serverlessinsight/state-insight-poc-destroy-app-insight-poc-destroy.json.backup +0 -14
- package/.serverlessinsight/state-insight-poc-timer-app-insight-poc-timer.json.backup +0 -132
- package/.serverlessinsight/state-insight-volc-app-insight-volc.json.backup +0 -55
- package/.serverlessinsight/state-insight-volc-destroy-app-insight-volc-destroy.json.backup +0 -1
- package/.serverlessinsight/state-insight-volc-nested-app-insight-volc-nested.json.backup +0 -93
- package/.serverlessinsight/state-nested-drift-app-nested-drift-service.json.backup +0 -163
- package/.serverlessinsight/state-role-reconcile-test-app-role-reconcile-test-service.json.backup +0 -148
|
@@ -6,7 +6,7 @@ This guide demonstrates how to use ServerlessInsight with Tencent Cloud COS buck
|
|
|
6
6
|
|
|
7
7
|
The Tencent COS support provides full lifecycle management for cloud storage buckets with:
|
|
8
8
|
|
|
9
|
-
- **State Management**: Local state tracking in `.serverlessinsight/state.json`
|
|
9
|
+
- **State Management**: Local state tracking in `.serverlessinsight/state-example-app-my-service.json`
|
|
10
10
|
- **Plan & Apply Flow**: Preview changes before applying them
|
|
11
11
|
- **Drift Detection**: Detect manual changes made outside ServerlessInsight
|
|
12
12
|
- **Website Hosting**: Configure static website hosting
|
|
@@ -29,8 +29,13 @@ provider:
|
|
|
29
29
|
name: tencent
|
|
30
30
|
region: ap-guangzhou
|
|
31
31
|
|
|
32
|
+
app: example-app
|
|
32
33
|
service: my-service
|
|
33
34
|
|
|
35
|
+
backend:
|
|
36
|
+
state_manager:
|
|
37
|
+
type: LOCAL
|
|
38
|
+
|
|
34
39
|
buckets:
|
|
35
40
|
my_bucket:
|
|
36
41
|
name: my-unique-bucket-name-123456 # Must be globally unique
|
|
@@ -95,7 +100,7 @@ Output shows:
|
|
|
95
100
|
Apply the infrastructure changes:
|
|
96
101
|
|
|
97
102
|
```bash
|
|
98
|
-
si deploy
|
|
103
|
+
si deploy \
|
|
99
104
|
-f serverless-insight.yml \
|
|
100
105
|
-r ap-guangzhou \
|
|
101
106
|
-k YOUR_SECRET_ID \
|
|
@@ -106,37 +111,50 @@ The deploy command will:
|
|
|
106
111
|
|
|
107
112
|
1. Generate a plan for all resources (functions + buckets)
|
|
108
113
|
2. Execute the plan (create/update/delete buckets)
|
|
109
|
-
3. Save the state to `.serverlessinsight/state.json`
|
|
114
|
+
3. Save the state to `.serverlessinsight/state-example-app-my-service.json`
|
|
110
115
|
|
|
111
116
|
### Validate
|
|
112
117
|
|
|
113
118
|
Validate your YAML configuration:
|
|
114
119
|
|
|
115
120
|
```bash
|
|
116
|
-
si validate
|
|
121
|
+
si validate -f serverless-insight.yml
|
|
117
122
|
```
|
|
118
123
|
|
|
119
124
|
## State Management
|
|
120
125
|
|
|
121
|
-
|
|
126
|
+
With the explicit LOCAL backend above, state remains at
|
|
127
|
+
`.serverlessinsight/state-example-app-my-service.json`. The V4 aggregate contains
|
|
128
|
+
independent stage/provider/region partitions, for example after selecting `-s prod`:
|
|
122
129
|
|
|
123
130
|
```json
|
|
124
131
|
{
|
|
125
|
-
"version": "0
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
"version": "4.0",
|
|
133
|
+
"app": "example-app",
|
|
134
|
+
"service": "my-service",
|
|
135
|
+
"stages": {
|
|
136
|
+
"prod": {
|
|
137
|
+
"providers": {
|
|
138
|
+
"tencent": {
|
|
139
|
+
"regions": {
|
|
140
|
+
"ap-guangzhou": {
|
|
141
|
+
"lineage": "deployment-uuid",
|
|
142
|
+
"serial": 1,
|
|
143
|
+
"resources": {},
|
|
144
|
+
"shared": {}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
134
149
|
}
|
|
135
150
|
}
|
|
136
151
|
}
|
|
137
152
|
```
|
|
138
153
|
|
|
139
|
-
|
|
154
|
+
The executor works with only the selected partition. Its native IDs and revision are
|
|
155
|
+
preserved when another provider/region is deployed. All partitions in this file share
|
|
156
|
+
one deployment lock. See [deployment state and migration](../docs/regional-deployment-state.md).
|
|
157
|
+
Keep state and credentials out of version control.
|
|
140
158
|
|
|
141
159
|
## Access Control (ACL)
|
|
142
160
|
|
|
@@ -185,6 +203,7 @@ buckets:
|
|
|
185
203
|
security:
|
|
186
204
|
acl: PUBLIC_READ # Website content must be publicly readable
|
|
187
205
|
website:
|
|
206
|
+
code: ./public
|
|
188
207
|
index: index.html # Default page (also used as error document for SPA routing)
|
|
189
208
|
```
|
|
190
209
|
|
|
@@ -206,8 +225,13 @@ provider:
|
|
|
206
225
|
name: tencent
|
|
207
226
|
region: ap-guangzhou
|
|
208
227
|
|
|
228
|
+
app: example-app
|
|
209
229
|
service: my-full-app
|
|
210
230
|
|
|
231
|
+
backend:
|
|
232
|
+
state_manager:
|
|
233
|
+
type: LOCAL
|
|
234
|
+
|
|
211
235
|
functions:
|
|
212
236
|
api_function:
|
|
213
237
|
name: my-api-function
|
|
@@ -224,6 +248,7 @@ buckets:
|
|
|
224
248
|
security:
|
|
225
249
|
acl: PUBLIC_READ
|
|
226
250
|
website:
|
|
251
|
+
code: ./public
|
|
227
252
|
index: index.html
|
|
228
253
|
```
|
|
229
254
|
|
|
@@ -233,10 +258,10 @@ Running `si deploy` multiple times with the same configuration is safe:
|
|
|
233
258
|
|
|
234
259
|
```bash
|
|
235
260
|
# First run - creates the bucket
|
|
236
|
-
si deploy
|
|
261
|
+
si deploy -f serverless-insight.yml
|
|
237
262
|
|
|
238
263
|
# Second run - detects no changes needed
|
|
239
|
-
si deploy
|
|
264
|
+
si deploy -f serverless-insight.yml
|
|
240
265
|
```
|
|
241
266
|
|
|
242
267
|
## Drift Detection
|
|
@@ -291,7 +316,7 @@ Run `si deploy` to apply the change.
|
|
|
291
316
|
|
|
292
317
|
To delete a bucket, remove it from your YAML file and run deploy:
|
|
293
318
|
|
|
294
|
-
```
|
|
319
|
+
```text
|
|
295
320
|
# Before
|
|
296
321
|
buckets:
|
|
297
322
|
my_bucket:
|
|
@@ -315,8 +340,13 @@ provider:
|
|
|
315
340
|
name: tencent
|
|
316
341
|
region: ap-guangzhou
|
|
317
342
|
|
|
343
|
+
app: example-app
|
|
318
344
|
service: simple-bucket
|
|
319
345
|
|
|
346
|
+
backend:
|
|
347
|
+
state_manager:
|
|
348
|
+
type: LOCAL
|
|
349
|
+
|
|
320
350
|
buckets:
|
|
321
351
|
assets:
|
|
322
352
|
name: my-assets-bucket-20250101
|
|
@@ -332,14 +362,20 @@ provider:
|
|
|
332
362
|
name: tencent
|
|
333
363
|
region: ap-guangzhou
|
|
334
364
|
|
|
365
|
+
app: example-app
|
|
335
366
|
service: my-website
|
|
336
367
|
|
|
368
|
+
backend:
|
|
369
|
+
state_manager:
|
|
370
|
+
type: LOCAL
|
|
371
|
+
|
|
337
372
|
buckets:
|
|
338
373
|
website:
|
|
339
374
|
name: my-website-bucket-20250101
|
|
340
375
|
security:
|
|
341
376
|
acl: PUBLIC_READ
|
|
342
377
|
website:
|
|
378
|
+
code: ./public
|
|
343
379
|
index: index.html
|
|
344
380
|
```
|
|
345
381
|
|
|
@@ -351,8 +387,13 @@ provider:
|
|
|
351
387
|
name: tencent
|
|
352
388
|
region: ap-guangzhou
|
|
353
389
|
|
|
390
|
+
app: example-app
|
|
354
391
|
service: multi-bucket-app
|
|
355
392
|
|
|
393
|
+
backend:
|
|
394
|
+
state_manager:
|
|
395
|
+
type: LOCAL
|
|
396
|
+
|
|
356
397
|
buckets:
|
|
357
398
|
public_assets:
|
|
358
399
|
name: public-assets-20250101
|
|
@@ -369,6 +410,7 @@ buckets:
|
|
|
369
410
|
security:
|
|
370
411
|
acl: PUBLIC_READ
|
|
371
412
|
website:
|
|
413
|
+
code: ./public
|
|
372
414
|
index: index.html
|
|
373
415
|
```
|
|
374
416
|
|
|
@@ -394,7 +436,7 @@ Error: `AuthFailure.SecretIdNotFound`
|
|
|
394
436
|
export TENCENTCLOUD_SECRET_ID=your_secret_id
|
|
395
437
|
export TENCENTCLOUD_SECRET_KEY=your_secret_key
|
|
396
438
|
|
|
397
|
-
si deploy
|
|
439
|
+
si deploy -f serverless-insight.yml
|
|
398
440
|
```
|
|
399
441
|
|
|
400
442
|
### Bucket Not Empty
|
|
@@ -421,10 +463,10 @@ If your website is not accessible after deployment:
|
|
|
421
463
|
|
|
422
464
|
### State File Conflicts
|
|
423
465
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
466
|
+
Keep the current state and backups. Confirm App/Service/Stage/Provider/Region and the
|
|
467
|
+
backend location, wait for the active writer, then refetch and re-plan. Write commands
|
|
468
|
+
automatically upgrade released V3 state in place; rerun the original operation to resume
|
|
469
|
+
an interrupted upgrade. Deleting or hand-editing state can lose sibling ownership.
|
|
428
470
|
|
|
429
471
|
## Limitations
|
|
430
472
|
|
|
@@ -6,7 +6,7 @@ This guide demonstrates how to use ServerlessInsight with Tencent Cloud SCF usin
|
|
|
6
6
|
|
|
7
7
|
The Tencent SCF support introduces a Terraform-like infrastructure management approach with:
|
|
8
8
|
|
|
9
|
-
- **State Management**: Local state tracking in `.serverlessinsight/state.json`
|
|
9
|
+
- **State Management**: Local state tracking in `.serverlessinsight/state-example-app-my-service.json`
|
|
10
10
|
- **Plan & Apply Flow**: Preview changes before applying them
|
|
11
11
|
- **Drift Detection**: Detect manual changes made outside ServerlessInsight
|
|
12
12
|
- **Idempotent Operations**: Safe to re-run deployments
|
|
@@ -38,13 +38,18 @@ stages:
|
|
|
38
38
|
prod:
|
|
39
39
|
node_env: production
|
|
40
40
|
|
|
41
|
+
app: example-app
|
|
41
42
|
service: my-service
|
|
42
43
|
|
|
44
|
+
backend:
|
|
45
|
+
state_manager:
|
|
46
|
+
type: LOCAL
|
|
47
|
+
|
|
43
48
|
functions:
|
|
44
49
|
my_function:
|
|
45
50
|
name: my-function-name
|
|
46
51
|
code:
|
|
47
|
-
runtime:
|
|
52
|
+
runtime: nodejs18
|
|
48
53
|
handler: index.handler
|
|
49
54
|
path: path/to/function.zip
|
|
50
55
|
memory: 512
|
|
@@ -88,7 +93,7 @@ Output shows:
|
|
|
88
93
|
Apply the infrastructure changes:
|
|
89
94
|
|
|
90
95
|
```bash
|
|
91
|
-
si deploy
|
|
96
|
+
si deploy \
|
|
92
97
|
-f serverless-insight.yml \
|
|
93
98
|
-r ap-guangzhou \
|
|
94
99
|
-k YOUR_SECRET_ID \
|
|
@@ -99,37 +104,50 @@ The deploy command will:
|
|
|
99
104
|
|
|
100
105
|
1. Generate a plan
|
|
101
106
|
2. Execute the plan (create/update/delete functions)
|
|
102
|
-
3. Save the state to `.serverlessinsight/state.json`
|
|
107
|
+
3. Save the state to `.serverlessinsight/state-example-app-my-service.json`
|
|
103
108
|
|
|
104
109
|
### Validate
|
|
105
110
|
|
|
106
111
|
Validate your YAML configuration:
|
|
107
112
|
|
|
108
113
|
```bash
|
|
109
|
-
si validate
|
|
114
|
+
si validate -f serverless-insight.yml
|
|
110
115
|
```
|
|
111
116
|
|
|
112
117
|
## State Management
|
|
113
118
|
|
|
114
|
-
|
|
119
|
+
With the explicit LOCAL backend above, state remains at
|
|
120
|
+
`.serverlessinsight/state-example-app-my-service.json`. The V4 aggregate contains
|
|
121
|
+
independent stage/provider/region partitions, for example after selecting `-s prod`:
|
|
115
122
|
|
|
116
123
|
```json
|
|
117
124
|
{
|
|
118
|
-
"version": "0
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
"version": "4.0",
|
|
126
|
+
"app": "example-app",
|
|
127
|
+
"service": "my-service",
|
|
128
|
+
"stages": {
|
|
129
|
+
"prod": {
|
|
130
|
+
"providers": {
|
|
131
|
+
"tencent": {
|
|
132
|
+
"regions": {
|
|
133
|
+
"ap-guangzhou": {
|
|
134
|
+
"lineage": "deployment-uuid",
|
|
135
|
+
"serial": 1,
|
|
136
|
+
"resources": {},
|
|
137
|
+
"shared": {}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
127
142
|
}
|
|
128
143
|
}
|
|
129
144
|
}
|
|
130
145
|
```
|
|
131
146
|
|
|
132
|
-
|
|
147
|
+
The executor works with only the selected partition. Its native IDs and revision are
|
|
148
|
+
preserved when another provider/region is deployed. All partitions in this file share
|
|
149
|
+
one deployment lock. See [deployment state and migration](../docs/regional-deployment-state.md).
|
|
150
|
+
Keep state and credentials out of version control.
|
|
133
151
|
|
|
134
152
|
## Idempotency
|
|
135
153
|
|
|
@@ -137,10 +155,10 @@ Running `si deploy` multiple times with the same configuration is safe:
|
|
|
137
155
|
|
|
138
156
|
```bash
|
|
139
157
|
# First run - creates the function
|
|
140
|
-
si deploy
|
|
158
|
+
si deploy -f serverless-insight.yml
|
|
141
159
|
|
|
142
160
|
# Second run - detects no changes needed
|
|
143
|
-
si deploy
|
|
161
|
+
si deploy -f serverless-insight.yml
|
|
144
162
|
```
|
|
145
163
|
|
|
146
164
|
## Drift Detection
|
|
@@ -186,10 +204,10 @@ Deploy to different stages:
|
|
|
186
204
|
|
|
187
205
|
```bash
|
|
188
206
|
# Deploy to dev
|
|
189
|
-
si deploy
|
|
207
|
+
si deploy -f serverless-insight.yml --stage dev
|
|
190
208
|
|
|
191
209
|
# Deploy to prod
|
|
192
|
-
si deploy
|
|
210
|
+
si deploy -f serverless-insight.yml --stage prod
|
|
193
211
|
```
|
|
194
212
|
|
|
195
213
|
## Function Configuration
|
|
@@ -239,7 +257,7 @@ Ensure your Secret ID and Secret Key are correct:
|
|
|
239
257
|
export TENCENTCLOUD_SECRET_ID=your_secret_id
|
|
240
258
|
export TENCENTCLOUD_SECRET_KEY=your_secret_key
|
|
241
259
|
|
|
242
|
-
si deploy
|
|
260
|
+
si deploy -f serverless-insight.yml
|
|
243
261
|
```
|
|
244
262
|
|
|
245
263
|
### Function Not Found
|
|
@@ -248,10 +266,10 @@ If you see "ResourceNotFound.FunctionName", the function doesn't exist yet. Run
|
|
|
248
266
|
|
|
249
267
|
### State File Conflicts
|
|
250
268
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
269
|
+
Keep the current state and backups. Confirm App/Service/Stage/Provider/Region and the
|
|
270
|
+
backend location, wait for the active writer, then refetch and re-plan. Write commands
|
|
271
|
+
automatically upgrade released V3 state in place; rerun the original operation to resume
|
|
272
|
+
an interrupted upgrade. Deleting or hand-editing state can lose sibling ownership.
|
|
255
273
|
|
|
256
274
|
## Limitations
|
|
257
275
|
|
|
@@ -260,7 +278,7 @@ Current limitations:
|
|
|
260
278
|
- No support for VPC configuration
|
|
261
279
|
- No support for triggers (API Gateway, COS, etc.)
|
|
262
280
|
- No support for layers
|
|
263
|
-
-
|
|
281
|
+
- Local, Bucket and SaaS backends have different lock scopes; choose the backend explicitly when following this Local example.
|
|
264
282
|
- No cross-resource dependencies
|
|
265
283
|
|
|
266
284
|
These features will be added in future releases.
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "3.0",
|
|
3
|
-
"provider": "aliyun",
|
|
4
|
-
"app": "iam-test-app",
|
|
5
|
-
"service": "iam-test-service",
|
|
6
|
-
"stages": {
|
|
7
|
-
"dev": {
|
|
8
|
-
"resources": {},
|
|
9
|
-
"shared": {
|
|
10
|
-
"logs.project": {
|
|
11
|
-
"mode": "managed",
|
|
12
|
-
"region": "cn-hangzhou",
|
|
13
|
-
"definition": {
|
|
14
|
-
"projectName": "iam-test-app-dev-sls",
|
|
15
|
-
"region": "cn-hangzhou",
|
|
16
|
-
"stage": "dev"
|
|
17
|
-
},
|
|
18
|
-
"instances": [
|
|
19
|
-
{
|
|
20
|
-
"sid": "si:aliyun:sls_project:dev:iam-test-app-dev-sls",
|
|
21
|
-
"type": "ALIYUN_SLS_PROJECT",
|
|
22
|
-
"id": "iam-test-app-dev-sls"
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"lastUpdated": "2026-10-27T03:28:43.284Z"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"lineage": "273e372c-c828-4b97-bd99-ee0bc9d7d154",
|
|
31
|
-
"serial": 3
|
|
32
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "3.0",
|
|
3
|
-
"provider": "tencent",
|
|
4
|
-
"app": "insight-poc-app",
|
|
5
|
-
"service": "insight-poc-tencent",
|
|
6
|
-
"stages": {
|
|
7
|
-
"default": {
|
|
8
|
-
"resources": {
|
|
9
|
-
"functions.test_fn": {
|
|
10
|
-
"mode": "managed",
|
|
11
|
-
"region": "ap-guangzhou",
|
|
12
|
-
"definition": {
|
|
13
|
-
"functionName": "test-fn",
|
|
14
|
-
"runtime": "Nodejs18.15",
|
|
15
|
-
"handler": "index.handler",
|
|
16
|
-
"memorySize": 512,
|
|
17
|
-
"timeout": 10,
|
|
18
|
-
"environment": {},
|
|
19
|
-
"codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f",
|
|
20
|
-
"vpcConfig": null,
|
|
21
|
-
"diskSize": null,
|
|
22
|
-
"cfsConfig": null,
|
|
23
|
-
"useGpu": null,
|
|
24
|
-
"imageConfig": null,
|
|
25
|
-
"logEnabled": false
|
|
26
|
-
},
|
|
27
|
-
"instances": [
|
|
28
|
-
{
|
|
29
|
-
"sid": "si:tencent:scf:default:test-fn",
|
|
30
|
-
"id": "test-fn",
|
|
31
|
-
"functionName": "test-fn",
|
|
32
|
-
"runtime": "Nodejs18.15",
|
|
33
|
-
"handler": "index.handler",
|
|
34
|
-
"memorySize": 256,
|
|
35
|
-
"timeout": 10,
|
|
36
|
-
"environment": {},
|
|
37
|
-
"modTime": null,
|
|
38
|
-
"codeSha256": null,
|
|
39
|
-
"codeInfo": null,
|
|
40
|
-
"description": null,
|
|
41
|
-
"triggers": [],
|
|
42
|
-
"codeSize": null,
|
|
43
|
-
"functionVersion": null,
|
|
44
|
-
"vpcConfig": {},
|
|
45
|
-
"useGpu": null,
|
|
46
|
-
"codeResult": null,
|
|
47
|
-
"codeError": null,
|
|
48
|
-
"errNo": null,
|
|
49
|
-
"namespace": null,
|
|
50
|
-
"role": null,
|
|
51
|
-
"installDependency": null,
|
|
52
|
-
"status": "Active",
|
|
53
|
-
"statusDesc": null,
|
|
54
|
-
"clsLogsetId": null,
|
|
55
|
-
"clsTopicId": null,
|
|
56
|
-
"functionId": null,
|
|
57
|
-
"tags": [],
|
|
58
|
-
"eipConfig": {},
|
|
59
|
-
"accessInfo": {},
|
|
60
|
-
"type": null,
|
|
61
|
-
"l5Enable": null,
|
|
62
|
-
"layers": [],
|
|
63
|
-
"deadLetterConfig": {},
|
|
64
|
-
"addTime": null,
|
|
65
|
-
"publicNetConfig": {},
|
|
66
|
-
"onsEnable": null,
|
|
67
|
-
"cfsConfig": {},
|
|
68
|
-
"availableStatus": null,
|
|
69
|
-
"qualifier": null,
|
|
70
|
-
"initTimeout": null,
|
|
71
|
-
"statusReasons": [],
|
|
72
|
-
"asyncRunEnable": null,
|
|
73
|
-
"traceEnable": null,
|
|
74
|
-
"imageConfig": {},
|
|
75
|
-
"protocolType": null,
|
|
76
|
-
"protocolParams": {},
|
|
77
|
-
"dnsCache": null,
|
|
78
|
-
"intranetConfig": {},
|
|
79
|
-
"instanceConcurrencyConfig": {}
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"lastUpdated": "2026-10-27T03:29:23.178Z"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"shared": {}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
"lineage": "77724ac6-4273-413d-a5a2-b6aaa9c13ecd",
|
|
89
|
-
"serial": 4
|
|
90
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "3.0",
|
|
3
|
-
"provider": "tencent",
|
|
4
|
-
"app": "insight-poc-app-log",
|
|
5
|
-
"service": "insight-poc-tencent-log",
|
|
6
|
-
"stages": {
|
|
7
|
-
"default": {
|
|
8
|
-
"resources": {
|
|
9
|
-
"functions.log_fn": {
|
|
10
|
-
"mode": "managed",
|
|
11
|
-
"region": "ap-guangzhou",
|
|
12
|
-
"definition": {
|
|
13
|
-
"functionName": "test-log-fn",
|
|
14
|
-
"runtime": "Nodejs18.15",
|
|
15
|
-
"handler": "index.handler",
|
|
16
|
-
"memorySize": 512,
|
|
17
|
-
"timeout": 10,
|
|
18
|
-
"environment": {},
|
|
19
|
-
"codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f",
|
|
20
|
-
"vpcConfig": null,
|
|
21
|
-
"diskSize": null,
|
|
22
|
-
"cfsConfig": null,
|
|
23
|
-
"useGpu": null,
|
|
24
|
-
"imageConfig": null,
|
|
25
|
-
"logConfig": {
|
|
26
|
-
"logset": "insight-poc-app-log-default-cls",
|
|
27
|
-
"topic": "insight-poc-tencent-log-default-log_fn-fn-logs"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"instances": [
|
|
31
|
-
{
|
|
32
|
-
"sid": "si:tencent:scf:default:test-log-fn",
|
|
33
|
-
"id": "test-log-fn",
|
|
34
|
-
"functionName": "test-log-fn",
|
|
35
|
-
"runtime": "Nodejs18.15",
|
|
36
|
-
"handler": "index.handler",
|
|
37
|
-
"memorySize": 512,
|
|
38
|
-
"timeout": 10,
|
|
39
|
-
"environment": {},
|
|
40
|
-
"modTime": null,
|
|
41
|
-
"codeSha256": null,
|
|
42
|
-
"codeInfo": null,
|
|
43
|
-
"description": null,
|
|
44
|
-
"triggers": [],
|
|
45
|
-
"codeSize": null,
|
|
46
|
-
"functionVersion": null,
|
|
47
|
-
"vpcConfig": {},
|
|
48
|
-
"useGpu": null,
|
|
49
|
-
"codeResult": null,
|
|
50
|
-
"codeError": null,
|
|
51
|
-
"errNo": null,
|
|
52
|
-
"namespace": null,
|
|
53
|
-
"role": null,
|
|
54
|
-
"installDependency": null,
|
|
55
|
-
"status": "Active",
|
|
56
|
-
"statusDesc": null,
|
|
57
|
-
"clsLogsetId": null,
|
|
58
|
-
"clsTopicId": null,
|
|
59
|
-
"functionId": null,
|
|
60
|
-
"tags": [],
|
|
61
|
-
"eipConfig": {},
|
|
62
|
-
"accessInfo": {},
|
|
63
|
-
"type": null,
|
|
64
|
-
"l5Enable": null,
|
|
65
|
-
"layers": [],
|
|
66
|
-
"deadLetterConfig": {},
|
|
67
|
-
"addTime": null,
|
|
68
|
-
"publicNetConfig": {},
|
|
69
|
-
"onsEnable": null,
|
|
70
|
-
"cfsConfig": {},
|
|
71
|
-
"availableStatus": null,
|
|
72
|
-
"qualifier": null,
|
|
73
|
-
"initTimeout": null,
|
|
74
|
-
"statusReasons": [],
|
|
75
|
-
"asyncRunEnable": null,
|
|
76
|
-
"traceEnable": null,
|
|
77
|
-
"imageConfig": {},
|
|
78
|
-
"protocolType": null,
|
|
79
|
-
"protocolParams": {},
|
|
80
|
-
"dnsCache": null,
|
|
81
|
-
"intranetConfig": {},
|
|
82
|
-
"instanceConcurrencyConfig": {}
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"sid": "si:tencent:cls-topic:default:insight-poc-tencent-log-default-log_fn-fn-logs",
|
|
86
|
-
"type": "TENCENT_CLS_TOPIC",
|
|
87
|
-
"id": "topic-1",
|
|
88
|
-
"topicName": "insight-poc-tencent-log-default-log_fn-fn-logs"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"lastUpdated": "2026-10-27T03:26:05.076Z"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"shared": {
|
|
95
|
-
"logs.project": {
|
|
96
|
-
"mode": "managed",
|
|
97
|
-
"region": "ap-guangzhou",
|
|
98
|
-
"definition": {
|
|
99
|
-
"logsetName": "insight-poc-app-log-default-cls",
|
|
100
|
-
"region": "ap-guangzhou",
|
|
101
|
-
"stage": "default"
|
|
102
|
-
},
|
|
103
|
-
"instances": [
|
|
104
|
-
{
|
|
105
|
-
"sid": "si:tencent:cls-logset:default:insight-poc-app-log-default-cls",
|
|
106
|
-
"type": "TENCENT_CLS_LOGSET",
|
|
107
|
-
"id": "insight-poc-app-log-default-cls",
|
|
108
|
-
"logsetId": "logset-1"
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
"lastUpdated": "2026-10-27T03:26:05.052Z"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
"lineage": "998d7efe-600f-45d2-a0a1-d09f7ad4ac73",
|
|
117
|
-
"serial": 4
|
|
118
|
-
}
|