@geek-fun/serverlessinsight 0.8.1 → 0.8.3
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/.serverlessinsight/state-cdn-flow-app-cdn-flow-service.json.backup +14 -0
- package/.serverlessinsight/state-iam-test-app-iam-test-service.json.backup +14 -0
- package/.serverlessinsight/state-insight-poc-deploy-app-insight-poc-deploy.json.backup +348 -0
- package/.serverlessinsight/state-insight-poc-destroy-app-insight-poc-destroy.json.backup +14 -0
- package/.serverlessinsight/state-insight-volc-app-insight-volc.json.backup +114 -0
- package/.serverlessinsight/state-insight-volc-destroy-app-insight-volc-destroy.json.backup +1 -0
- package/README.md +26 -18
- package/README.zh-CN.md +19 -6
- package/dist/package.json +3 -1
- package/dist/src/commands/deploy.js +87 -4
- package/dist/src/commands/destroy.js +61 -10
- package/dist/src/commands/forceUnlock.js +8 -0
- package/dist/src/commands/index.js +34 -2
- package/dist/src/commands/login.js +195 -0
- package/dist/src/commands/logout.js +17 -0
- package/dist/src/commands/show.js +15 -7
- package/dist/src/commands/whoami.js +20 -0
- package/dist/src/common/aliyunClient/apigwOperations.js +332 -32
- package/dist/src/common/aliyunClient/esOperations.js +43 -29
- package/dist/src/common/aliyunClient/fc3Operations.js +481 -207
- package/dist/src/common/aliyunClient/ossOperations.js +165 -13
- package/dist/src/common/aliyunClient/rdsOperations.js +143 -39
- package/dist/src/common/aliyunClient/slsOperations.js +56 -26
- package/dist/src/common/aliyunClient/tablestoreOperations.js +25 -22
- package/dist/src/common/apiClient.js +102 -0
- package/dist/src/common/constants.js +9 -4
- package/dist/src/common/credentialStore.js +94 -0
- package/dist/src/common/credentials.js +2 -0
- package/dist/src/common/eventQueue.js +208 -0
- package/dist/src/common/hashUtils.js +87 -11
- package/dist/src/common/imsClient.js +1 -0
- package/dist/src/common/index.js +3 -0
- package/dist/src/common/lockManager.js +61 -54
- package/dist/src/common/logger.js +2 -0
- package/dist/src/common/polling.js +54 -0
- package/dist/src/common/reportResourceEvent.js +8 -0
- package/dist/src/common/runtimeMapper.js +11 -12
- package/dist/src/common/stateBackend/index.js +10 -1
- package/dist/src/common/stateBackend/localStateBackend.js +4 -1
- package/dist/src/common/stateBackend/remoteStateBackend.js +6 -3
- package/dist/src/common/stateBackend/saasStateBackend.js +266 -0
- package/dist/src/common/stateManager.js +135 -13
- package/dist/src/common/tencentClient/cosOperations.js +180 -3
- package/dist/src/common/tencentClient/esOperations.js +110 -46
- package/dist/src/common/tencentClient/index.js +22 -1
- package/dist/src/common/tencentClient/scfOperations.js +255 -133
- package/dist/src/common/tencentClient/tdsqlcClusterMapper.js +81 -0
- package/dist/src/common/tencentClient/tdsqlcOperations.js +93 -99
- package/dist/src/common/triggerMapper.js +36 -0
- package/dist/src/common/volcengineClient/apigwOperations.js +539 -159
- package/dist/src/common/volcengineClient/iamOperations.js +58 -48
- package/dist/src/common/volcengineClient/index.js +46 -21
- package/dist/src/common/volcengineClient/stsOperations.js +32 -0
- package/dist/src/common/volcengineClient/tlsOperations.js +229 -178
- package/dist/src/common/volcengineClient/tosOperations.js +78 -19
- package/dist/src/common/volcengineClient/vefaasOperations.js +272 -54
- package/dist/src/lang/en.js +84 -0
- package/dist/src/lang/zh-CN.js +84 -0
- package/dist/src/parser/eventParser.js +2 -0
- package/dist/src/parser/functionParser.js +96 -65
- package/dist/src/parser/index.js +7 -4
- package/dist/src/stack/aliyunStack/apigwExecutor.js +39 -1
- package/dist/src/stack/aliyunStack/apigwPlanner.js +14 -10
- package/dist/src/stack/aliyunStack/apigwResource.js +230 -125
- package/dist/src/stack/aliyunStack/apigwTypes.js +16 -3
- package/dist/src/stack/aliyunStack/databaseExecutor.js +39 -1
- package/dist/src/stack/aliyunStack/databasePlanner.js +13 -1
- package/dist/src/stack/aliyunStack/databaseResource.js +135 -40
- package/dist/src/stack/aliyunStack/deployer.js +2 -2
- package/dist/src/stack/aliyunStack/destroyer.js +2 -2
- package/dist/src/stack/aliyunStack/fc3Executor.js +25 -2
- package/dist/src/stack/aliyunStack/fc3Planner.js +11 -1
- package/dist/src/stack/aliyunStack/fc3Resource.js +327 -64
- package/dist/src/stack/aliyunStack/ossExecutor.js +39 -1
- package/dist/src/stack/aliyunStack/ossPlanner.js +15 -1
- package/dist/src/stack/aliyunStack/ossResource.js +267 -219
- package/dist/src/stack/aliyunStack/tablestoreExecutor.js +39 -1
- package/dist/src/stack/aliyunStack/tablestorePlanner.js +13 -1
- package/dist/src/stack/aliyunStack/tablestoreResource.js +54 -20
- package/dist/src/stack/alreadyExists.js +26 -0
- package/dist/src/stack/ownershipTag.js +40 -0
- package/dist/src/stack/rfsStack/index.js +3 -1
- package/dist/src/stack/scfStack/cosExecutor.js +39 -1
- package/dist/src/stack/scfStack/cosPlanner.js +11 -1
- package/dist/src/stack/scfStack/cosResource.js +167 -64
- package/dist/src/stack/scfStack/deployer.js +2 -2
- package/dist/src/stack/scfStack/destroyer.js +2 -2
- package/dist/src/stack/scfStack/esServerlessExecutor.js +39 -1
- package/dist/src/stack/scfStack/esServerlessPlanner.js +11 -1
- package/dist/src/stack/scfStack/esServerlessResource.js +88 -23
- package/dist/src/stack/scfStack/scfExecutor.js +39 -1
- package/dist/src/stack/scfStack/scfPlanner.js +12 -2
- package/dist/src/stack/scfStack/scfResource.js +484 -14
- package/dist/src/stack/scfStack/tdsqlcExecutor.js +39 -1
- package/dist/src/stack/scfStack/tdsqlcPlanner.js +12 -1
- package/dist/src/stack/scfStack/tdsqlcResource.js +95 -16
- package/dist/src/stack/scfStack/tdsqlcTypes.js +5 -1
- package/dist/src/stack/volcengineStack/apigwExecutor.js +39 -1
- package/dist/src/stack/volcengineStack/apigwPlanner.js +25 -53
- package/dist/src/stack/volcengineStack/apigwResource.js +418 -222
- package/dist/src/stack/volcengineStack/apigwTypes.js +76 -66
- package/dist/src/stack/volcengineStack/deployer.js +49 -14
- package/dist/src/stack/volcengineStack/destroyer.js +1 -1
- package/dist/src/stack/volcengineStack/index.js +1 -2
- package/dist/src/stack/volcengineStack/tosExecutor.js +25 -2
- package/dist/src/stack/volcengineStack/tosPlanner.js +11 -1
- package/dist/src/stack/volcengineStack/tosResource.js +82 -27
- package/dist/src/stack/volcengineStack/tosTypes.js +12 -0
- package/dist/src/stack/volcengineStack/vefaasExecutor.js +25 -2
- package/dist/src/stack/volcengineStack/vefaasPlanner.js +71 -2
- package/dist/src/stack/volcengineStack/vefaasResource.js +148 -98
- package/dist/src/stack/volcengineStack/vefaasTypes.js +1 -3
- package/dist/src/types/domains/backend.js +1 -0
- package/dist/src/types/domains/state.js +29 -1
- package/dist/src/validator/eventSchema.js +10 -0
- package/dist/src/validator/functionSchema.js +37 -12
- package/dist/src/validator/iacSchema.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "3.0",
|
|
3
|
+
"provider": "aliyun",
|
|
4
|
+
"app": "insight-poc-deploy-app",
|
|
5
|
+
"service": "insight-poc-deploy",
|
|
6
|
+
"stages": {
|
|
7
|
+
"dev": {
|
|
8
|
+
"resources": {
|
|
9
|
+
"functions.insight_poc_fn": {
|
|
10
|
+
"mode": "managed",
|
|
11
|
+
"region": "cn-hangzhou",
|
|
12
|
+
"definition": {
|
|
13
|
+
"functionName": "insight-poc-fn",
|
|
14
|
+
"runtime": "nodejs18",
|
|
15
|
+
"handler": "index.handler",
|
|
16
|
+
"memorySize": 512,
|
|
17
|
+
"timeout": 10,
|
|
18
|
+
"diskSize": null,
|
|
19
|
+
"environment": {
|
|
20
|
+
"NODE_ENV": "development",
|
|
21
|
+
"TEST_VAR": "testVarValue",
|
|
22
|
+
"TEST_VAR_EXTRA": "abcds-testVarValue-andyou"
|
|
23
|
+
},
|
|
24
|
+
"vpcConfig": null,
|
|
25
|
+
"gpuConfig": null,
|
|
26
|
+
"customContainerConfig": null,
|
|
27
|
+
"nasConfig": null,
|
|
28
|
+
"logConfig": {
|
|
29
|
+
"project": "insight-poc-deploy-app-insight-poc-deploy-dev-sls",
|
|
30
|
+
"logstore": "insight-poc-deploy-app-insight-poc-deploy-dev-sls-logstore",
|
|
31
|
+
"enableRequestMetrics": true,
|
|
32
|
+
"enableInstanceMetrics": true
|
|
33
|
+
},
|
|
34
|
+
"codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f"
|
|
35
|
+
},
|
|
36
|
+
"instances": [
|
|
37
|
+
{
|
|
38
|
+
"type": "ALIYUN_FC3_FUNCTION",
|
|
39
|
+
"sid": "si:aliyun:fc3:dev:insight-poc-fn",
|
|
40
|
+
"id": "test-function",
|
|
41
|
+
"functionName": "test-function",
|
|
42
|
+
"functionArn": null,
|
|
43
|
+
"functionId": null,
|
|
44
|
+
"runtime": "nodejs18",
|
|
45
|
+
"handler": "index.handler",
|
|
46
|
+
"memorySize": 128,
|
|
47
|
+
"timeout": 60,
|
|
48
|
+
"diskSize": null,
|
|
49
|
+
"cpu": null,
|
|
50
|
+
"environment": {},
|
|
51
|
+
"vpcConfig": {},
|
|
52
|
+
"gpuConfig": {},
|
|
53
|
+
"nasConfig": {},
|
|
54
|
+
"logConfig": {},
|
|
55
|
+
"customContainerConfig": {},
|
|
56
|
+
"description": null,
|
|
57
|
+
"internetAccess": null,
|
|
58
|
+
"role": null,
|
|
59
|
+
"codeChecksum": null,
|
|
60
|
+
"codeSize": null,
|
|
61
|
+
"createdTime": null,
|
|
62
|
+
"lastModifiedTime": null,
|
|
63
|
+
"state": "Running",
|
|
64
|
+
"stateReason": null,
|
|
65
|
+
"stateReasonCode": null,
|
|
66
|
+
"lastUpdateStatus": null,
|
|
67
|
+
"lastUpdateStatusReason": null,
|
|
68
|
+
"lastUpdateStatusReasonCode": null
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"sid": "si:aliyun:sls_project:dev:insight-poc-deploy-app-insight-poc-deploy-dev-sls",
|
|
72
|
+
"id": "insight-poc-deploy-app-insight-poc-deploy-dev-sls",
|
|
73
|
+
"type": "ALIYUN_SLS_PROJECT",
|
|
74
|
+
"projectName": "test-project"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"sid": "si:aliyun:sls_logstore:dev:insight-poc-deploy-app-insight-poc-deploy-dev-sls/insight-poc-deploy-app-insight-poc-deploy-dev-sls-logstore",
|
|
78
|
+
"id": "insight-poc-deploy-app-insight-poc-deploy-dev-sls/insight-poc-deploy-app-insight-poc-deploy-dev-sls-logstore",
|
|
79
|
+
"type": "ALIYUN_SLS_LOGSTORE",
|
|
80
|
+
"logstoreName": "test-logstore"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"sid": "si:aliyun:sls_index:dev:insight-poc-deploy-app-insight-poc-deploy-dev-sls/insight-poc-deploy-app-insight-poc-deploy-dev-sls-logstore/index",
|
|
84
|
+
"id": "insight-poc-deploy-app-insight-poc-deploy-dev-sls/insight-poc-deploy-app-insight-poc-deploy-dev-sls-logstore/index",
|
|
85
|
+
"type": "ALIYUN_SLS_INDEX"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"sid": "si:aliyun:ram_role:dev:insight-poc-deploy-app-insight-poc-deploy-dev-fc-role",
|
|
89
|
+
"id": "insight-poc-deploy-app-insight-poc-deploy-dev-fc-role",
|
|
90
|
+
"type": "ALIYUN_RAM_ROLE",
|
|
91
|
+
"body": {
|
|
92
|
+
"Role": {
|
|
93
|
+
"RoleName": "test-role"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"lastUpdated": "2026-08-26T03:31:16.209Z",
|
|
99
|
+
"status": "ready"
|
|
100
|
+
},
|
|
101
|
+
"events.gateway_event": {
|
|
102
|
+
"mode": "managed",
|
|
103
|
+
"region": "cn-hangzhou",
|
|
104
|
+
"definition": {
|
|
105
|
+
"groupName": "insight-poc-deploy-dev-agw-group",
|
|
106
|
+
"description": "API Gateway group for insight-poc-deploy",
|
|
107
|
+
"basePath": null,
|
|
108
|
+
"triggers": [
|
|
109
|
+
{
|
|
110
|
+
"method": "GET",
|
|
111
|
+
"path": "/api/hello",
|
|
112
|
+
"backend": "${functions.insight_poc_fn}"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"domain": null
|
|
116
|
+
},
|
|
117
|
+
"instances": [
|
|
118
|
+
{
|
|
119
|
+
"type": "ALIYUN_APIGW_GROUP",
|
|
120
|
+
"sid": "si:aliyun:apigateway:dev:",
|
|
121
|
+
"id": "",
|
|
122
|
+
"groupId": null,
|
|
123
|
+
"groupName": null,
|
|
124
|
+
"description": null,
|
|
125
|
+
"basePath": null,
|
|
126
|
+
"subDomain": null,
|
|
127
|
+
"instanceId": null,
|
|
128
|
+
"instanceType": null,
|
|
129
|
+
"regionId": null,
|
|
130
|
+
"status": null,
|
|
131
|
+
"createdTime": null,
|
|
132
|
+
"modifiedTime": null,
|
|
133
|
+
"billingStatus": null,
|
|
134
|
+
"illegalStatus": null,
|
|
135
|
+
"trafficLimit": null
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "ALIYUN_APIGW_API",
|
|
139
|
+
"sid": "si:aliyun:apigateway:dev:[object Object]/undefined",
|
|
140
|
+
"id": "",
|
|
141
|
+
"apiId": null,
|
|
142
|
+
"apiName": null,
|
|
143
|
+
"groupId": null,
|
|
144
|
+
"groupName": null,
|
|
145
|
+
"description": null,
|
|
146
|
+
"visibility": null,
|
|
147
|
+
"authType": null,
|
|
148
|
+
"requestConfig": null,
|
|
149
|
+
"serviceConfig": null,
|
|
150
|
+
"resultType": null,
|
|
151
|
+
"resultSample": null,
|
|
152
|
+
"createdTime": null,
|
|
153
|
+
"modifiedTime": null,
|
|
154
|
+
"deployedInfos": null
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "ALIYUN_APIGW_DEPLOYMENT",
|
|
158
|
+
"sid": "si:aliyun:apigateway:dev:[object Object]/[object Object]/RELEASE",
|
|
159
|
+
"id": "[object Object]/[object Object]/RELEASE",
|
|
160
|
+
"groupId": {
|
|
161
|
+
"body": {
|
|
162
|
+
"groupId": "group-123"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"apiId": {
|
|
166
|
+
"body": {
|
|
167
|
+
"apiId": "api-123"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"stageName": "RELEASE"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"lastUpdated": "2026-08-26T03:31:16.211Z"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"resources": {
|
|
179
|
+
"functions.insight_poc_fn": {
|
|
180
|
+
"mode": "managed",
|
|
181
|
+
"region": "cn-hangzhou",
|
|
182
|
+
"definition": {
|
|
183
|
+
"functionName": "insight-poc-fn",
|
|
184
|
+
"runtime": "nodejs18",
|
|
185
|
+
"handler": "index.handler",
|
|
186
|
+
"memorySize": 512,
|
|
187
|
+
"timeout": 10,
|
|
188
|
+
"diskSize": null,
|
|
189
|
+
"environment": {
|
|
190
|
+
"NODE_ENV": "development",
|
|
191
|
+
"TEST_VAR": "testVarValue",
|
|
192
|
+
"TEST_VAR_EXTRA": "abcds-testVarValue-andyou"
|
|
193
|
+
},
|
|
194
|
+
"vpcConfig": null,
|
|
195
|
+
"gpuConfig": null,
|
|
196
|
+
"customContainerConfig": null,
|
|
197
|
+
"nasConfig": null,
|
|
198
|
+
"logConfig": {
|
|
199
|
+
"project": "insight-poc-deploy-app-insight-poc-deploy-dev-sls",
|
|
200
|
+
"logstore": "insight-poc-deploy-app-insight-poc-deploy-dev-sls-logstore",
|
|
201
|
+
"enableRequestMetrics": true,
|
|
202
|
+
"enableInstanceMetrics": true
|
|
203
|
+
},
|
|
204
|
+
"codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f"
|
|
205
|
+
},
|
|
206
|
+
"instances": [
|
|
207
|
+
{
|
|
208
|
+
"type": "ALIYUN_FC3_FUNCTION",
|
|
209
|
+
"sid": "si:aliyun:fc3:dev:insight-poc-fn",
|
|
210
|
+
"id": "test-function",
|
|
211
|
+
"functionName": "test-function",
|
|
212
|
+
"functionArn": null,
|
|
213
|
+
"functionId": null,
|
|
214
|
+
"runtime": "nodejs18",
|
|
215
|
+
"handler": "index.handler",
|
|
216
|
+
"memorySize": 128,
|
|
217
|
+
"timeout": 60,
|
|
218
|
+
"diskSize": null,
|
|
219
|
+
"cpu": null,
|
|
220
|
+
"environment": {},
|
|
221
|
+
"vpcConfig": {},
|
|
222
|
+
"gpuConfig": {},
|
|
223
|
+
"nasConfig": {},
|
|
224
|
+
"logConfig": {},
|
|
225
|
+
"customContainerConfig": {},
|
|
226
|
+
"description": null,
|
|
227
|
+
"internetAccess": null,
|
|
228
|
+
"role": null,
|
|
229
|
+
"codeChecksum": null,
|
|
230
|
+
"codeSize": null,
|
|
231
|
+
"createdTime": null,
|
|
232
|
+
"lastModifiedTime": null,
|
|
233
|
+
"state": "Running",
|
|
234
|
+
"stateReason": null,
|
|
235
|
+
"stateReasonCode": null,
|
|
236
|
+
"lastUpdateStatus": null,
|
|
237
|
+
"lastUpdateStatusReason": null,
|
|
238
|
+
"lastUpdateStatusReasonCode": null
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"sid": "si:aliyun:sls_project:dev:insight-poc-deploy-app-insight-poc-deploy-dev-sls",
|
|
242
|
+
"id": "insight-poc-deploy-app-insight-poc-deploy-dev-sls",
|
|
243
|
+
"type": "ALIYUN_SLS_PROJECT",
|
|
244
|
+
"projectName": "test-project"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"sid": "si:aliyun:sls_logstore:dev:insight-poc-deploy-app-insight-poc-deploy-dev-sls/insight-poc-deploy-app-insight-poc-deploy-dev-sls-logstore",
|
|
248
|
+
"id": "insight-poc-deploy-app-insight-poc-deploy-dev-sls/insight-poc-deploy-app-insight-poc-deploy-dev-sls-logstore",
|
|
249
|
+
"type": "ALIYUN_SLS_LOGSTORE",
|
|
250
|
+
"logstoreName": "test-logstore"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"sid": "si:aliyun:sls_index:dev:insight-poc-deploy-app-insight-poc-deploy-dev-sls/insight-poc-deploy-app-insight-poc-deploy-dev-sls-logstore/index",
|
|
254
|
+
"id": "insight-poc-deploy-app-insight-poc-deploy-dev-sls/insight-poc-deploy-app-insight-poc-deploy-dev-sls-logstore/index",
|
|
255
|
+
"type": "ALIYUN_SLS_INDEX"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"sid": "si:aliyun:ram_role:dev:insight-poc-deploy-app-insight-poc-deploy-dev-fc-role",
|
|
259
|
+
"id": "insight-poc-deploy-app-insight-poc-deploy-dev-fc-role",
|
|
260
|
+
"type": "ALIYUN_RAM_ROLE",
|
|
261
|
+
"body": {
|
|
262
|
+
"Role": {
|
|
263
|
+
"RoleName": "test-role"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"lastUpdated": "2026-08-26T03:31:16.209Z",
|
|
269
|
+
"status": "ready"
|
|
270
|
+
},
|
|
271
|
+
"events.gateway_event": {
|
|
272
|
+
"mode": "managed",
|
|
273
|
+
"region": "cn-hangzhou",
|
|
274
|
+
"definition": {
|
|
275
|
+
"groupName": "insight-poc-deploy-dev-agw-group",
|
|
276
|
+
"description": "API Gateway group for insight-poc-deploy",
|
|
277
|
+
"basePath": null,
|
|
278
|
+
"triggers": [
|
|
279
|
+
{
|
|
280
|
+
"method": "GET",
|
|
281
|
+
"path": "/api/hello",
|
|
282
|
+
"backend": "${functions.insight_poc_fn}"
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"domain": null
|
|
286
|
+
},
|
|
287
|
+
"instances": [
|
|
288
|
+
{
|
|
289
|
+
"type": "ALIYUN_APIGW_GROUP",
|
|
290
|
+
"sid": "si:aliyun:apigateway:dev:",
|
|
291
|
+
"id": "",
|
|
292
|
+
"groupId": null,
|
|
293
|
+
"groupName": null,
|
|
294
|
+
"description": null,
|
|
295
|
+
"basePath": null,
|
|
296
|
+
"subDomain": null,
|
|
297
|
+
"instanceId": null,
|
|
298
|
+
"instanceType": null,
|
|
299
|
+
"regionId": null,
|
|
300
|
+
"status": null,
|
|
301
|
+
"createdTime": null,
|
|
302
|
+
"modifiedTime": null,
|
|
303
|
+
"billingStatus": null,
|
|
304
|
+
"illegalStatus": null,
|
|
305
|
+
"trafficLimit": null
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"type": "ALIYUN_APIGW_API",
|
|
309
|
+
"sid": "si:aliyun:apigateway:dev:[object Object]/undefined",
|
|
310
|
+
"id": "",
|
|
311
|
+
"apiId": null,
|
|
312
|
+
"apiName": null,
|
|
313
|
+
"groupId": null,
|
|
314
|
+
"groupName": null,
|
|
315
|
+
"description": null,
|
|
316
|
+
"visibility": null,
|
|
317
|
+
"authType": null,
|
|
318
|
+
"requestConfig": null,
|
|
319
|
+
"serviceConfig": null,
|
|
320
|
+
"resultType": null,
|
|
321
|
+
"resultSample": null,
|
|
322
|
+
"createdTime": null,
|
|
323
|
+
"modifiedTime": null,
|
|
324
|
+
"deployedInfos": null
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"type": "ALIYUN_APIGW_DEPLOYMENT",
|
|
328
|
+
"sid": "si:aliyun:apigateway:dev:[object Object]/[object Object]/RELEASE",
|
|
329
|
+
"id": "[object Object]/[object Object]/RELEASE",
|
|
330
|
+
"groupId": {
|
|
331
|
+
"body": {
|
|
332
|
+
"groupId": "group-123"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"apiId": {
|
|
336
|
+
"body": {
|
|
337
|
+
"apiId": "api-123"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"stageName": "RELEASE"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"lastUpdated": "2026-08-26T03:31:16.211Z"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"lineage": "1b805eed-b101-473c-9698-9ff65fcd8482",
|
|
347
|
+
"serial": 2
|
|
348
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "3.0",
|
|
3
|
+
"provider": "aliyun",
|
|
4
|
+
"app": "insight-poc-destroy-app",
|
|
5
|
+
"service": "insight-poc-destroy",
|
|
6
|
+
"stages": {
|
|
7
|
+
"dev": {
|
|
8
|
+
"resources": {}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"resources": {},
|
|
12
|
+
"lineage": "c6b9260f-9c70-430d-b2f9-bea4dfd8248d",
|
|
13
|
+
"serial": 1
|
|
14
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "3.0",
|
|
3
|
+
"provider": "volcengine",
|
|
4
|
+
"app": "insight-volc-app",
|
|
5
|
+
"service": "insight-volc",
|
|
6
|
+
"stages": {
|
|
7
|
+
"dev": {
|
|
8
|
+
"resources": {
|
|
9
|
+
"functions.insight_poc_fn": {
|
|
10
|
+
"mode": "managed",
|
|
11
|
+
"region": "cn-beijing",
|
|
12
|
+
"definition": {
|
|
13
|
+
"functionName": "insight-poc-fn",
|
|
14
|
+
"runtime": "node20/v1",
|
|
15
|
+
"handler": "index.handler",
|
|
16
|
+
"memorySize": 128,
|
|
17
|
+
"timeout": 30,
|
|
18
|
+
"environment": {
|
|
19
|
+
"NODE_ENV": "production"
|
|
20
|
+
},
|
|
21
|
+
"codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f",
|
|
22
|
+
"role": "trn:iam::123456789012:role/test-role"
|
|
23
|
+
},
|
|
24
|
+
"instances": [
|
|
25
|
+
{
|
|
26
|
+
"type": "VOLCENGINE_VEFAAS_FUNCTION",
|
|
27
|
+
"sid": "si:volcengine:insight-volc:dev:insight-poc-fn",
|
|
28
|
+
"id": "insight-poc-fn",
|
|
29
|
+
"functionName": "insight-poc-fn",
|
|
30
|
+
"functionId": "func-123",
|
|
31
|
+
"runtime": "node20/v1",
|
|
32
|
+
"handler": "index.handler",
|
|
33
|
+
"memorySize": 128,
|
|
34
|
+
"timeout": 30,
|
|
35
|
+
"environment": {},
|
|
36
|
+
"status": "Active",
|
|
37
|
+
"createdTime": null,
|
|
38
|
+
"lastUpdateTime": null,
|
|
39
|
+
"Tags": [
|
|
40
|
+
{
|
|
41
|
+
"Key": "si-owned-by",
|
|
42
|
+
"Value": "insight-volc-app-insight-volc:functions.insight_poc_fn"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"sid": "si:volcengine:iam_role:dev:insight-volc-app-insight-volc-dev-role",
|
|
48
|
+
"id": "insight-volc-app-insight-volc-dev-role",
|
|
49
|
+
"type": "VOLCENGINE_IAM_ROLE",
|
|
50
|
+
"trn": "trn:iam::123456789012:role/test-role",
|
|
51
|
+
"roleName": "test-role",
|
|
52
|
+
"roleId": "role-123"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"status": "ready",
|
|
56
|
+
"lastUpdated": "2026-08-26T03:31:09.017Z"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"resources": {
|
|
62
|
+
"functions.insight_poc_fn": {
|
|
63
|
+
"mode": "managed",
|
|
64
|
+
"region": "cn-beijing",
|
|
65
|
+
"definition": {
|
|
66
|
+
"functionName": "insight-poc-fn",
|
|
67
|
+
"runtime": "node20/v1",
|
|
68
|
+
"handler": "index.handler",
|
|
69
|
+
"memorySize": 128,
|
|
70
|
+
"timeout": 30,
|
|
71
|
+
"environment": {
|
|
72
|
+
"NODE_ENV": "production"
|
|
73
|
+
},
|
|
74
|
+
"codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f",
|
|
75
|
+
"role": "trn:iam::123456789012:role/test-role"
|
|
76
|
+
},
|
|
77
|
+
"instances": [
|
|
78
|
+
{
|
|
79
|
+
"type": "VOLCENGINE_VEFAAS_FUNCTION",
|
|
80
|
+
"sid": "si:volcengine:insight-volc:dev:insight-poc-fn",
|
|
81
|
+
"id": "insight-poc-fn",
|
|
82
|
+
"functionName": "insight-poc-fn",
|
|
83
|
+
"functionId": "func-123",
|
|
84
|
+
"runtime": "node20/v1",
|
|
85
|
+
"handler": "index.handler",
|
|
86
|
+
"memorySize": 128,
|
|
87
|
+
"timeout": 30,
|
|
88
|
+
"environment": {},
|
|
89
|
+
"status": "Active",
|
|
90
|
+
"createdTime": null,
|
|
91
|
+
"lastUpdateTime": null,
|
|
92
|
+
"Tags": [
|
|
93
|
+
{
|
|
94
|
+
"Key": "si-owned-by",
|
|
95
|
+
"Value": "insight-volc-app-insight-volc:functions.insight_poc_fn"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"sid": "si:volcengine:iam_role:dev:insight-volc-app-insight-volc-dev-role",
|
|
101
|
+
"id": "insight-volc-app-insight-volc-dev-role",
|
|
102
|
+
"type": "VOLCENGINE_IAM_ROLE",
|
|
103
|
+
"trn": "trn:iam::123456789012:role/test-role",
|
|
104
|
+
"roleName": "test-role",
|
|
105
|
+
"roleId": "role-123"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"status": "ready",
|
|
109
|
+
"lastUpdated": "2026-08-26T03:31:09.017Z"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"lineage": "8a806e94-68b6-4524-a28f-e2511c2e8a74",
|
|
113
|
+
"serial": 1
|
|
114
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"3.0","provider":"volcengine","app":"insight-volc-destroy-app","service":"insight-volc-destroy","stages":{"dev":{"resources":{"functions.insight_poc_fn":{"mode":"managed","region":"cn-beijing","definition":{"functionName":"insight-poc-fn","runtime":"node20/v1","handler":"index.handler","memorySize":128,"timeout":30},"instances":[{"sid":"insight-poc-fn","id":"insight-poc-fn","type":"VOLCENGINE_VEFAAS_FUNCTION","functionId":"fn-123"},{"sid":"iam-role-sid","id":"insight-volc-destroy-app-insight-volc-destroy-dev-role","type":"VOLCENGINE_IAM_ROLE","trn":"trn:iam::123456789012:role/insight-volc-destroy-app-insight-volc-destroy-dev-role"}],"lastUpdated":"2024-01-01T00:00:00.000Z","status":"ready"}}}},"resources":{}}
|
package/README.md
CHANGED
|
@@ -6,19 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
**Open source. Multi-cloud. Infrastructure as Code.**
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
[](https://github.com/geek-fun/serverlessinsight/releases)
|
|
12
|
+
[](https://www.npmjs.com/package/@geek-fun/serverlessinsight)
|
|
13
|
+
[](LICENSE)
|
|
14
|
+
[](https://github.com/geek-fun/serverlessinsight/stargazers)
|
|
15
|
+
[](https://github.com/geek-fun/serverlessinsight/actions/workflows/node.yml)
|
|
14
16
|
|
|
15
17
|
<p>
|
|
16
|
-
<img src="https://img.shields.io/badge/Node.js-339933
|
|
17
|
-
<img src="https://img.shields.io/badge/TypeScript-3178C6
|
|
18
|
-
<img src="https://img.shields.io/badge/Alibaba%20Cloud-FF6A00
|
|
19
|
-
<img src="https://img.shields.io/badge/Tencent%20Cloud-0A9AED
|
|
20
|
-
<img src="https://img.shields.io/badge/Huawei%20Cloud-FF0000
|
|
21
|
-
<img src="https://img.shields.io/badge/AWS-232F3E
|
|
18
|
+
<img src="https://img.shields.io/badge/Node.js-339933&logo=nodedotjs&logoColor=white"/>
|
|
19
|
+
<img src="https://img.shields.io/badge/TypeScript-3178C6&logo=typescript&logoColor=white"/>
|
|
20
|
+
<img src="https://img.shields.io/badge/Alibaba%20Cloud-FF6A00&logo=alibabacloud&logoColor=white"/>
|
|
21
|
+
<img src="https://img.shields.io/badge/Tencent%20Cloud-0A9AED&logo=tencentqq&logoColor=white"/>
|
|
22
|
+
<img src="https://img.shields.io/badge/Huawei%20Cloud-FF0000&logo=hauwei&logoColor=white"/>
|
|
23
|
+
<img src="https://img.shields.io/badge/AWS-232F3E&logo=amazonwebservices&logoColor=white"/>
|
|
22
24
|
</p>
|
|
23
25
|
|
|
24
26
|
[npm i -g @geek-fun/serverlessinsight](https://www.npmjs.com/package/@geek-fun/serverlessinsight) · [Docs](https://serverlessinsight.geekfun.club) · [Website](https://serverlessinsight.geekfun.club) · [GitHub](https://github.com/geek-fun/serverlessinsight)
|
|
@@ -44,15 +46,15 @@ ServerlessInsight is a **cross-provider serverless framework** — it replaces c
|
|
|
44
46
|
## Installation
|
|
45
47
|
|
|
46
48
|
<a href="https://www.npmjs.com/package/@geek-fun/serverlessinsight">
|
|
47
|
-
<img src="https://img.shields.io/badge/npm_install-g_--g_@geek--fun/serverlessinsight-CB3837
|
|
49
|
+
<img src="https://img.shields.io/badge/npm_install-g_--g_@geek--fun/serverlessinsight-CB3837&logo=npm&logoColor=white" alt="npm install">
|
|
48
50
|
</a>
|
|
49
51
|
|
|
50
52
|
<a href="https://github.com/geek-fun/serverlessinsight/releases">
|
|
51
|
-
<img src="https://img.shields.io/badge/Releases-GitHub-lightgrey
|
|
53
|
+
<img src="https://img.shields.io/badge/Releases-GitHub-lightgrey&logo=github" alt="Releases">
|
|
52
54
|
</a>
|
|
53
55
|
|
|
54
56
|
<a href="https://serverlessinsight.geekfun.club">
|
|
55
|
-
<img src="https://img.shields.io/badge/Docs-serverlessinsight.geekfun.club-blue
|
|
57
|
+
<img src="https://img.shields.io/badge/Docs-serverlessinsight.geekfun.club-blue&logo=gitbook&logoColor=white" alt="Docs">
|
|
56
58
|
</a>
|
|
57
59
|
|
|
58
60
|
```bash
|
|
@@ -219,11 +221,17 @@ More in the [samples](./samples) directory.
|
|
|
219
221
|
## Community
|
|
220
222
|
|
|
221
223
|
<p align="center">
|
|
222
|
-
<
|
|
224
|
+
<img src="https://www.geekfun.club/wechat-group.jpg" width="140" alt="WeChat Group">
|
|
225
|
+
</p>
|
|
226
|
+
|
|
227
|
+
<p align="center">
|
|
228
|
+
<a href="https://discord.gg/5NSUyPK2E"><img src="https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white" alt="Discord" /></a>
|
|
229
|
+
|
|
230
|
+
<a href="https://x.com/geekfun_club"><img src="https://img.shields.io/badge/X-Follow-000000?logo=x&logoColor=white" alt="X / Twitter" /></a>
|
|
223
231
|
|
|
224
|
-
<a href="https://
|
|
232
|
+
<a href="https://www.youtube.com/@geekfun-club"><img src="https://img.shields.io/badge/YouTube-Subscribe-FF0000?logo=youtube&logoColor=white" alt="YouTube" /></a>
|
|
225
233
|
|
|
226
|
-
<a href="https://github.com/geek-fun"><img src="https://img.shields.io/badge/GitHub-Follow-181717?
|
|
234
|
+
<a href="https://github.com/geek-fun"><img src="https://img.shields.io/badge/GitHub-Follow-181717?logo=github&logoColor=white" alt="GitHub" /></a>
|
|
227
235
|
</p>
|
|
228
236
|
|
|
229
237
|
## Contributing
|
|
@@ -233,7 +241,7 @@ Contributions welcome! Open an issue or pull request. See the [AGENTS.md](AGENTS
|
|
|
233
241
|
## Sponsor
|
|
234
242
|
|
|
235
243
|
<p align="center">
|
|
236
|
-
<a href="https://github.com/sponsors/geek-fun"><img src="https://img.shields.io/badge/GitHub_Sponsors-%E2%9D%A4_Support-EA4AAA?
|
|
244
|
+
<a href="https://github.com/sponsors/geek-fun"><img src="https://img.shields.io/badge/GitHub_Sponsors-%E2%9D%A4_Support-EA4AAA?logo=githubsponsors&logoColor=white" alt="GitHub Sponsors" /></a>
|
|
237
245
|
</p>
|
|
238
246
|
|
|
239
247
|
## Star History
|
package/README.zh-CN.md
CHANGED
|
@@ -341,12 +341,25 @@ ServerlessInsight 使用基于状态的部署模型,在本地状态文件 (`.s
|
|
|
341
341
|
|
|
342
342
|
## 👥 社区
|
|
343
343
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
344
|
+
<p align="center">
|
|
345
|
+
<img src="https://www.geekfun.club/wechat-group.jpg" width="140" alt="微信群">
|
|
346
|
+
</p>
|
|
347
|
+
|
|
348
|
+
<p align="center">
|
|
349
|
+
<a href="https://discord.gg/5NSUyPK2E"><img src="https://img.shields.io/badge/Discord-加入-5865F2?logo=discord&logoColor=white" alt="Discord" /></a>
|
|
350
|
+
|
|
351
|
+
<a href="https://x.com/geekfun_club"><img src="https://img.shields.io/badge/X-关注-000000?logo=x&logoColor=white" alt="X / Twitter" /></a>
|
|
352
|
+
|
|
353
|
+
<a href="https://www.youtube.com/@geekfun-club"><img src="https://img.shields.io/badge/YouTube-订阅-FF0000?logo=youtube&logoColor=white" alt="YouTube" /></a>
|
|
354
|
+
|
|
355
|
+
<a href="https://github.com/geek-fun"><img src="https://img.shields.io/badge/GitHub-关注-181717?logo=github&logoColor=white" alt="GitHub" /></a>
|
|
356
|
+
</p>
|
|
357
|
+
|
|
358
|
+
## Sponsor
|
|
359
|
+
|
|
360
|
+
<p align="center">
|
|
361
|
+
<a href="https://github.com/sponsors/geek-fun"><img src="https://img.shields.io/badge/GitHub_Sponsors-%E2%9D%A4_支持-EA4AAA?logo=githubsponsors&logoColor=white" alt="GitHub Sponsors" /></a>
|
|
362
|
+
</p>
|
|
350
363
|
|
|
351
364
|
## 📄 许可证
|
|
352
365
|
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geek-fun/serverlessinsight",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "Full life cycle cross providers serverless application management for your fast-growing business.",
|
|
5
5
|
"homepage": "https://serverlessinsight.geekfun.club",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"iconv-lite": "^0.7.3",
|
|
77
77
|
"jszip": "^3.10.1",
|
|
78
78
|
"lodash": "^4.18.1",
|
|
79
|
+
"open": "^9.1.0",
|
|
79
80
|
"pino": "^10.3.1",
|
|
80
81
|
"pino-pretty": "^13.1.3",
|
|
81
82
|
"tablestore": "^5.6.5",
|
|
@@ -85,6 +86,7 @@
|
|
|
85
86
|
"tencentcloud-sdk-nodejs-es": "^4.1.263",
|
|
86
87
|
"tencentcloud-sdk-nodejs-scf": "^4.1.168",
|
|
87
88
|
"tencentcloud-sdk-nodejs-ssl": "^4.1.239",
|
|
89
|
+
"tencentcloud-sdk-nodejs-tag": "^4.1.244",
|
|
88
90
|
"yaml": "^2.9.0"
|
|
89
91
|
},
|
|
90
92
|
"devDependencies": {
|