@geek-fun/serverlessinsight 0.8.2 → 0.8.4
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 +15 -0
- package/.serverlessinsight/state-iam-test-app-iam-test-service.json.backup +33 -0
- package/.serverlessinsight/state-insight-poc-deploy-app-insight-poc-deploy.json.backup +359 -0
- package/.serverlessinsight/state-insight-poc-destroy-app-insight-poc-destroy.json.backup +15 -0
- package/.serverlessinsight/state-insight-volc-app-insight-volc.json.backup +154 -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 +5 -2
- 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 +363 -30
- 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 +90 -28
- package/dist/src/common/aliyunClient/tablestoreOperations.js +25 -22
- package/dist/src/common/apiClient.js +102 -0
- package/dist/src/common/constants.js +13 -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 +10 -4
- package/dist/src/common/stateBackend/saasStateBackend.js +266 -0
- package/dist/src/common/stateManager.js +186 -14
- package/dist/src/common/tencentClient/clsOperations.js +137 -0
- 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 +43 -2
- package/dist/src/common/tencentClient/scfOperations.js +266 -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 +91 -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 +305 -171
- package/dist/src/common/volcengineClient/tosOperations.js +78 -19
- package/dist/src/common/volcengineClient/vefaasOperations.js +272 -54
- package/dist/src/lang/en.js +107 -1
- package/dist/src/lang/zh-CN.js +107 -1
- 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 +16 -10
- package/dist/src/stack/aliyunStack/apigwResource.js +334 -125
- package/dist/src/stack/aliyunStack/apigwTypes.js +35 -4
- 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 +27 -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 +416 -94
- 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/sharedLogProject.js +137 -0
- 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 +58 -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 +15 -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 +21 -3
- package/dist/src/stack/scfStack/scfResource.js +686 -24
- package/dist/src/stack/scfStack/scfTypes.js +6 -0
- package/dist/src/stack/scfStack/sharedLogset.js +126 -0
- 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 +434 -222
- package/dist/src/stack/volcengineStack/apigwTypes.js +85 -66
- package/dist/src/stack/volcengineStack/deployer.js +49 -14
- package/dist/src/stack/volcengineStack/destroyer.js +13 -1
- package/dist/src/stack/volcengineStack/index.js +1 -2
- package/dist/src/stack/volcengineStack/sharedLogProject.js +190 -0
- 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 +78 -2
- package/dist/src/stack/volcengineStack/vefaasResource.js +194 -144
- 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 +32 -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 +5 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "3.0",
|
|
3
|
+
"provider": "aliyun",
|
|
4
|
+
"app": "cdn-flow-app",
|
|
5
|
+
"service": "cdn-flow-service",
|
|
6
|
+
"stages": {
|
|
7
|
+
"dev": {
|
|
8
|
+
"resources": {},
|
|
9
|
+
"shared": {}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"resources": {},
|
|
13
|
+
"lineage": "4beff987-b7a0-44d6-a02a-eee189eccd05",
|
|
14
|
+
"serial": 5
|
|
15
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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-08-27T03:52:07.150Z"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"resources": {},
|
|
31
|
+
"lineage": "f59147b2-cb79-4655-af4d-b74afc5d85aa",
|
|
32
|
+
"serial": 3
|
|
33
|
+
}
|
|
@@ -0,0 +1,359 @@
|
|
|
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-dev-sls",
|
|
30
|
+
"logstore": "insight-poc-deploy-dev-fn-logs",
|
|
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_logstore:dev:insight-poc-deploy-app-dev-sls/insight-poc-deploy-dev-fn-logs",
|
|
72
|
+
"id": "insight-poc-deploy-app-dev-sls/insight-poc-deploy-dev-fn-logs",
|
|
73
|
+
"type": "ALIYUN_SLS_LOGSTORE",
|
|
74
|
+
"logstoreName": "insight-poc-deploy-dev-fn-logs"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"sid": "si:aliyun:sls_index:dev:insight-poc-deploy-app-dev-sls/insight-poc-deploy-dev-fn-logs/index",
|
|
78
|
+
"id": "insight-poc-deploy-app-dev-sls/insight-poc-deploy-dev-fn-logs/index",
|
|
79
|
+
"type": "ALIYUN_SLS_INDEX",
|
|
80
|
+
"projectName": "insight-poc-deploy-app-dev-sls",
|
|
81
|
+
"logstoreName": "insight-poc-deploy-dev-fn-logs"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"sid": "si:aliyun:ram_role:dev:insight-poc-deploy-app-insight-poc-deploy-dev-fc-role",
|
|
85
|
+
"id": "insight-poc-deploy-app-insight-poc-deploy-dev-fc-role",
|
|
86
|
+
"type": "ALIYUN_RAM_ROLE",
|
|
87
|
+
"body": {
|
|
88
|
+
"Role": {
|
|
89
|
+
"RoleName": "test-role"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"lastUpdated": "2026-08-27T03:52:42.221Z",
|
|
95
|
+
"status": "ready"
|
|
96
|
+
},
|
|
97
|
+
"events.gateway_event": {
|
|
98
|
+
"mode": "managed",
|
|
99
|
+
"region": "cn-hangzhou",
|
|
100
|
+
"definition": {
|
|
101
|
+
"groupName": "insight-poc-deploy-dev-agw-group",
|
|
102
|
+
"description": "API Gateway group for insight-poc-deploy",
|
|
103
|
+
"basePath": null,
|
|
104
|
+
"triggers": [
|
|
105
|
+
{
|
|
106
|
+
"method": "GET",
|
|
107
|
+
"path": "/api/hello",
|
|
108
|
+
"backend": "${functions.insight_poc_fn}"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"domain": null
|
|
112
|
+
},
|
|
113
|
+
"instances": [
|
|
114
|
+
{
|
|
115
|
+
"type": "ALIYUN_APIGW_GROUP",
|
|
116
|
+
"sid": "si:aliyun:apigateway:dev:",
|
|
117
|
+
"id": "",
|
|
118
|
+
"groupId": null,
|
|
119
|
+
"groupName": null,
|
|
120
|
+
"description": null,
|
|
121
|
+
"basePath": null,
|
|
122
|
+
"subDomain": null,
|
|
123
|
+
"instanceId": null,
|
|
124
|
+
"instanceType": null,
|
|
125
|
+
"regionId": null,
|
|
126
|
+
"status": null,
|
|
127
|
+
"createdTime": null,
|
|
128
|
+
"modifiedTime": null,
|
|
129
|
+
"billingStatus": null,
|
|
130
|
+
"illegalStatus": null,
|
|
131
|
+
"trafficLimit": null
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "ALIYUN_APIGW_API",
|
|
135
|
+
"sid": "si:aliyun:apigateway:dev:[object Object]/undefined",
|
|
136
|
+
"id": "",
|
|
137
|
+
"apiId": null,
|
|
138
|
+
"apiName": null,
|
|
139
|
+
"groupId": null,
|
|
140
|
+
"groupName": null,
|
|
141
|
+
"description": null,
|
|
142
|
+
"visibility": null,
|
|
143
|
+
"authType": null,
|
|
144
|
+
"requestConfig": null,
|
|
145
|
+
"serviceConfig": null,
|
|
146
|
+
"resultType": null,
|
|
147
|
+
"resultSample": null,
|
|
148
|
+
"createdTime": null,
|
|
149
|
+
"modifiedTime": null,
|
|
150
|
+
"deployedInfos": null
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"type": "ALIYUN_APIGW_DEPLOYMENT",
|
|
154
|
+
"sid": "si:aliyun:apigateway:dev:[object Object]/[object Object]/RELEASE",
|
|
155
|
+
"id": "[object Object]/[object Object]/RELEASE",
|
|
156
|
+
"groupId": {
|
|
157
|
+
"body": {
|
|
158
|
+
"groupId": "group-123"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"apiId": {
|
|
162
|
+
"body": {
|
|
163
|
+
"apiId": "api-123"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"stageName": "RELEASE"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"lastUpdated": "2026-08-27T03:52:42.274Z"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"shared": {
|
|
173
|
+
"logs.project": {
|
|
174
|
+
"mode": "managed",
|
|
175
|
+
"region": "cn-hangzhou",
|
|
176
|
+
"definition": {
|
|
177
|
+
"projectName": "insight-poc-deploy-app-dev-sls",
|
|
178
|
+
"region": "cn-hangzhou",
|
|
179
|
+
"stage": "dev"
|
|
180
|
+
},
|
|
181
|
+
"instances": [
|
|
182
|
+
{
|
|
183
|
+
"sid": "si:aliyun:sls_project:dev:insight-poc-deploy-app-dev-sls",
|
|
184
|
+
"type": "ALIYUN_SLS_PROJECT",
|
|
185
|
+
"id": "insight-poc-deploy-app-dev-sls"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"lastUpdated": "2026-08-27T03:52:37.219Z"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"resources": {
|
|
194
|
+
"functions.insight_poc_fn": {
|
|
195
|
+
"mode": "managed",
|
|
196
|
+
"region": "cn-hangzhou",
|
|
197
|
+
"definition": {
|
|
198
|
+
"functionName": "insight-poc-fn",
|
|
199
|
+
"runtime": "nodejs18",
|
|
200
|
+
"handler": "index.handler",
|
|
201
|
+
"memorySize": 512,
|
|
202
|
+
"timeout": 10,
|
|
203
|
+
"diskSize": null,
|
|
204
|
+
"environment": {
|
|
205
|
+
"NODE_ENV": "development",
|
|
206
|
+
"TEST_VAR": "testVarValue",
|
|
207
|
+
"TEST_VAR_EXTRA": "abcds-testVarValue-andyou"
|
|
208
|
+
},
|
|
209
|
+
"vpcConfig": null,
|
|
210
|
+
"gpuConfig": null,
|
|
211
|
+
"customContainerConfig": null,
|
|
212
|
+
"nasConfig": null,
|
|
213
|
+
"logConfig": {
|
|
214
|
+
"project": "insight-poc-deploy-app-dev-sls",
|
|
215
|
+
"logstore": "insight-poc-deploy-dev-fn-logs",
|
|
216
|
+
"enableRequestMetrics": true,
|
|
217
|
+
"enableInstanceMetrics": true
|
|
218
|
+
},
|
|
219
|
+
"codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f"
|
|
220
|
+
},
|
|
221
|
+
"instances": [
|
|
222
|
+
{
|
|
223
|
+
"type": "ALIYUN_FC3_FUNCTION",
|
|
224
|
+
"sid": "si:aliyun:fc3:dev:insight-poc-fn",
|
|
225
|
+
"id": "test-function",
|
|
226
|
+
"functionName": "test-function",
|
|
227
|
+
"functionArn": null,
|
|
228
|
+
"functionId": null,
|
|
229
|
+
"runtime": "nodejs18",
|
|
230
|
+
"handler": "index.handler",
|
|
231
|
+
"memorySize": 128,
|
|
232
|
+
"timeout": 60,
|
|
233
|
+
"diskSize": null,
|
|
234
|
+
"cpu": null,
|
|
235
|
+
"environment": {},
|
|
236
|
+
"vpcConfig": {},
|
|
237
|
+
"gpuConfig": {},
|
|
238
|
+
"nasConfig": {},
|
|
239
|
+
"logConfig": {},
|
|
240
|
+
"customContainerConfig": {},
|
|
241
|
+
"description": null,
|
|
242
|
+
"internetAccess": null,
|
|
243
|
+
"role": null,
|
|
244
|
+
"codeChecksum": null,
|
|
245
|
+
"codeSize": null,
|
|
246
|
+
"createdTime": null,
|
|
247
|
+
"lastModifiedTime": null,
|
|
248
|
+
"state": "Running",
|
|
249
|
+
"stateReason": null,
|
|
250
|
+
"stateReasonCode": null,
|
|
251
|
+
"lastUpdateStatus": null,
|
|
252
|
+
"lastUpdateStatusReason": null,
|
|
253
|
+
"lastUpdateStatusReasonCode": null
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"sid": "si:aliyun:sls_logstore:dev:insight-poc-deploy-app-dev-sls/insight-poc-deploy-dev-fn-logs",
|
|
257
|
+
"id": "insight-poc-deploy-app-dev-sls/insight-poc-deploy-dev-fn-logs",
|
|
258
|
+
"type": "ALIYUN_SLS_LOGSTORE",
|
|
259
|
+
"logstoreName": "insight-poc-deploy-dev-fn-logs"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"sid": "si:aliyun:sls_index:dev:insight-poc-deploy-app-dev-sls/insight-poc-deploy-dev-fn-logs/index",
|
|
263
|
+
"id": "insight-poc-deploy-app-dev-sls/insight-poc-deploy-dev-fn-logs/index",
|
|
264
|
+
"type": "ALIYUN_SLS_INDEX",
|
|
265
|
+
"projectName": "insight-poc-deploy-app-dev-sls",
|
|
266
|
+
"logstoreName": "insight-poc-deploy-dev-fn-logs"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"sid": "si:aliyun:ram_role:dev:insight-poc-deploy-app-insight-poc-deploy-dev-fc-role",
|
|
270
|
+
"id": "insight-poc-deploy-app-insight-poc-deploy-dev-fc-role",
|
|
271
|
+
"type": "ALIYUN_RAM_ROLE",
|
|
272
|
+
"body": {
|
|
273
|
+
"Role": {
|
|
274
|
+
"RoleName": "test-role"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"lastUpdated": "2026-08-27T03:52:42.221Z",
|
|
280
|
+
"status": "ready"
|
|
281
|
+
},
|
|
282
|
+
"events.gateway_event": {
|
|
283
|
+
"mode": "managed",
|
|
284
|
+
"region": "cn-hangzhou",
|
|
285
|
+
"definition": {
|
|
286
|
+
"groupName": "insight-poc-deploy-dev-agw-group",
|
|
287
|
+
"description": "API Gateway group for insight-poc-deploy",
|
|
288
|
+
"basePath": null,
|
|
289
|
+
"triggers": [
|
|
290
|
+
{
|
|
291
|
+
"method": "GET",
|
|
292
|
+
"path": "/api/hello",
|
|
293
|
+
"backend": "${functions.insight_poc_fn}"
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"domain": null
|
|
297
|
+
},
|
|
298
|
+
"instances": [
|
|
299
|
+
{
|
|
300
|
+
"type": "ALIYUN_APIGW_GROUP",
|
|
301
|
+
"sid": "si:aliyun:apigateway:dev:",
|
|
302
|
+
"id": "",
|
|
303
|
+
"groupId": null,
|
|
304
|
+
"groupName": null,
|
|
305
|
+
"description": null,
|
|
306
|
+
"basePath": null,
|
|
307
|
+
"subDomain": null,
|
|
308
|
+
"instanceId": null,
|
|
309
|
+
"instanceType": null,
|
|
310
|
+
"regionId": null,
|
|
311
|
+
"status": null,
|
|
312
|
+
"createdTime": null,
|
|
313
|
+
"modifiedTime": null,
|
|
314
|
+
"billingStatus": null,
|
|
315
|
+
"illegalStatus": null,
|
|
316
|
+
"trafficLimit": null
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"type": "ALIYUN_APIGW_API",
|
|
320
|
+
"sid": "si:aliyun:apigateway:dev:[object Object]/undefined",
|
|
321
|
+
"id": "",
|
|
322
|
+
"apiId": null,
|
|
323
|
+
"apiName": null,
|
|
324
|
+
"groupId": null,
|
|
325
|
+
"groupName": null,
|
|
326
|
+
"description": null,
|
|
327
|
+
"visibility": null,
|
|
328
|
+
"authType": null,
|
|
329
|
+
"requestConfig": null,
|
|
330
|
+
"serviceConfig": null,
|
|
331
|
+
"resultType": null,
|
|
332
|
+
"resultSample": null,
|
|
333
|
+
"createdTime": null,
|
|
334
|
+
"modifiedTime": null,
|
|
335
|
+
"deployedInfos": null
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"type": "ALIYUN_APIGW_DEPLOYMENT",
|
|
339
|
+
"sid": "si:aliyun:apigateway:dev:[object Object]/[object Object]/RELEASE",
|
|
340
|
+
"id": "[object Object]/[object Object]/RELEASE",
|
|
341
|
+
"groupId": {
|
|
342
|
+
"body": {
|
|
343
|
+
"groupId": "group-123"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"apiId": {
|
|
347
|
+
"body": {
|
|
348
|
+
"apiId": "api-123"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"stageName": "RELEASE"
|
|
352
|
+
}
|
|
353
|
+
],
|
|
354
|
+
"lastUpdated": "2026-08-27T03:52:42.274Z"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"lineage": "62d671af-1c11-4edd-947b-191e37fa17c4",
|
|
358
|
+
"serial": 2
|
|
359
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
"shared": {}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"resources": {},
|
|
13
|
+
"lineage": "cbf27939-33fe-46ed-8e84-31391e505fc7",
|
|
14
|
+
"serial": 1
|
|
15
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
"logConfig": {
|
|
24
|
+
"project": "insight-volc-app-dev-tls",
|
|
25
|
+
"topic": "insight-volc-dev-fn-logs"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"instances": [
|
|
29
|
+
{
|
|
30
|
+
"type": "VOLCENGINE_VEFAAS_FUNCTION",
|
|
31
|
+
"sid": "si:volcengine:insight-volc:dev:insight-poc-fn",
|
|
32
|
+
"id": "test-function",
|
|
33
|
+
"functionName": "test-function",
|
|
34
|
+
"functionId": "func-123",
|
|
35
|
+
"runtime": "node20/v1",
|
|
36
|
+
"handler": "index.handler",
|
|
37
|
+
"memorySize": 128,
|
|
38
|
+
"timeout": 30,
|
|
39
|
+
"environment": {},
|
|
40
|
+
"status": "Active",
|
|
41
|
+
"createdTime": null,
|
|
42
|
+
"lastUpdateTime": null
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"sid": "si:volcengine:tls_topic:dev:insight-volc-app-dev-tls/insight-volc-dev-fn-logs",
|
|
46
|
+
"id": "insight-volc-app-dev-tls/insight-volc-dev-fn-logs",
|
|
47
|
+
"type": "VOLCENGINE_TLS_TOPIC",
|
|
48
|
+
"topicName": "insight-volc-dev-fn-logs",
|
|
49
|
+
"topicId": "topic-123"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"sid": "si:volcengine:tls_index:dev:insight-volc-app-dev-tls/insight-volc-dev-fn-logs/index",
|
|
53
|
+
"id": "insight-volc-app-dev-tls/insight-volc-dev-fn-logs/index",
|
|
54
|
+
"type": "VOLCENGINE_TLS_INDEX"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"sid": "si:volcengine:iam_role:dev:insight-volc-app-insight-volc-dev-role",
|
|
58
|
+
"id": "insight-volc-app-insight-volc-dev-role",
|
|
59
|
+
"type": "VOLCENGINE_IAM_ROLE",
|
|
60
|
+
"trn": "trn:iam::123456789012:role/test-role",
|
|
61
|
+
"roleName": "test-role",
|
|
62
|
+
"roleId": "role-123"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"status": "ready",
|
|
66
|
+
"lastUpdated": "2026-08-27T03:52:21.091Z"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"shared": {
|
|
70
|
+
"logs.project": {
|
|
71
|
+
"mode": "managed",
|
|
72
|
+
"region": "cn-beijing",
|
|
73
|
+
"definition": {
|
|
74
|
+
"projectName": "insight-volc-app-dev-tls",
|
|
75
|
+
"region": "cn-beijing",
|
|
76
|
+
"stage": "dev"
|
|
77
|
+
},
|
|
78
|
+
"instances": [
|
|
79
|
+
{
|
|
80
|
+
"sid": "si:volcengine:tls:dev:insight-volc-app-dev-tls",
|
|
81
|
+
"type": "VOLCENGINE_TLS_PROJECT",
|
|
82
|
+
"id": "insight-volc-app-dev-tls",
|
|
83
|
+
"projectId": "proj-123"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"lastUpdated": "2026-08-27T03:52:18.089Z"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"resources": {
|
|
92
|
+
"functions.insight_poc_fn": {
|
|
93
|
+
"mode": "managed",
|
|
94
|
+
"region": "cn-beijing",
|
|
95
|
+
"definition": {
|
|
96
|
+
"functionName": "insight-poc-fn",
|
|
97
|
+
"runtime": "node20/v1",
|
|
98
|
+
"handler": "index.handler",
|
|
99
|
+
"memorySize": 128,
|
|
100
|
+
"timeout": 30,
|
|
101
|
+
"environment": {
|
|
102
|
+
"NODE_ENV": "production"
|
|
103
|
+
},
|
|
104
|
+
"codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f",
|
|
105
|
+
"role": "trn:iam::123456789012:role/test-role",
|
|
106
|
+
"logConfig": {
|
|
107
|
+
"project": "insight-volc-app-dev-tls",
|
|
108
|
+
"topic": "insight-volc-dev-fn-logs"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"instances": [
|
|
112
|
+
{
|
|
113
|
+
"type": "VOLCENGINE_VEFAAS_FUNCTION",
|
|
114
|
+
"sid": "si:volcengine:insight-volc:dev:insight-poc-fn",
|
|
115
|
+
"id": "test-function",
|
|
116
|
+
"functionName": "test-function",
|
|
117
|
+
"functionId": "func-123",
|
|
118
|
+
"runtime": "node20/v1",
|
|
119
|
+
"handler": "index.handler",
|
|
120
|
+
"memorySize": 128,
|
|
121
|
+
"timeout": 30,
|
|
122
|
+
"environment": {},
|
|
123
|
+
"status": "Active",
|
|
124
|
+
"createdTime": null,
|
|
125
|
+
"lastUpdateTime": null
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"sid": "si:volcengine:tls_topic:dev:insight-volc-app-dev-tls/insight-volc-dev-fn-logs",
|
|
129
|
+
"id": "insight-volc-app-dev-tls/insight-volc-dev-fn-logs",
|
|
130
|
+
"type": "VOLCENGINE_TLS_TOPIC",
|
|
131
|
+
"topicName": "insight-volc-dev-fn-logs",
|
|
132
|
+
"topicId": "topic-123"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"sid": "si:volcengine:tls_index:dev:insight-volc-app-dev-tls/insight-volc-dev-fn-logs/index",
|
|
136
|
+
"id": "insight-volc-app-dev-tls/insight-volc-dev-fn-logs/index",
|
|
137
|
+
"type": "VOLCENGINE_TLS_INDEX"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"sid": "si:volcengine:iam_role:dev:insight-volc-app-insight-volc-dev-role",
|
|
141
|
+
"id": "insight-volc-app-insight-volc-dev-role",
|
|
142
|
+
"type": "VOLCENGINE_IAM_ROLE",
|
|
143
|
+
"trn": "trn:iam::123456789012:role/test-role",
|
|
144
|
+
"roleName": "test-role",
|
|
145
|
+
"roleId": "role-123"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"status": "ready",
|
|
149
|
+
"lastUpdated": "2026-08-27T03:52:21.091Z"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"lineage": "34d922b2-a366-4262-a127-4b7addf54d12",
|
|
153
|
+
"serial": 1
|
|
154
|
+
}
|
|
@@ -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
|