@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
|
@@ -1,215 +0,0 @@
|
|
|
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-insight-poc-fn-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": "insight-poc-fn",
|
|
41
|
-
"functionName": "insight-poc-fn",
|
|
42
|
-
"functionArn": null,
|
|
43
|
-
"functionId": null,
|
|
44
|
-
"runtime": "nodejs18",
|
|
45
|
-
"handler": "index.handler",
|
|
46
|
-
"memorySize": 512,
|
|
47
|
-
"timeout": 10,
|
|
48
|
-
"diskSize": null,
|
|
49
|
-
"cpu": null,
|
|
50
|
-
"environment": {
|
|
51
|
-
"NODE_ENV": "development",
|
|
52
|
-
"TEST_VAR": "testVarValue",
|
|
53
|
-
"TEST_VAR_EXTRA": "abcds-testVarValue-andyou"
|
|
54
|
-
},
|
|
55
|
-
"vpcConfig": {},
|
|
56
|
-
"gpuConfig": {},
|
|
57
|
-
"nasConfig": {},
|
|
58
|
-
"logConfig": {
|
|
59
|
-
"project": "insight-poc-deploy-app-dev-sls",
|
|
60
|
-
"logstore": "insight-poc-deploy-dev-insight-poc-fn-fn-logs",
|
|
61
|
-
"enableRequestMetrics": true,
|
|
62
|
-
"enableInstanceMetrics": true,
|
|
63
|
-
"logBeginRule": null
|
|
64
|
-
},
|
|
65
|
-
"customContainerConfig": {},
|
|
66
|
-
"description": null,
|
|
67
|
-
"internetAccess": null,
|
|
68
|
-
"role": "acs:ram::123456789012:role/insight-poc-deploy-app-insight-poc-deploy-dev-insig-role-160n4hk",
|
|
69
|
-
"codeChecksum": null,
|
|
70
|
-
"codeSize": null,
|
|
71
|
-
"createdTime": null,
|
|
72
|
-
"lastModifiedTime": null,
|
|
73
|
-
"state": "Running",
|
|
74
|
-
"stateReason": null,
|
|
75
|
-
"stateReasonCode": null,
|
|
76
|
-
"lastUpdateStatus": null,
|
|
77
|
-
"lastUpdateStatusReason": null,
|
|
78
|
-
"lastUpdateStatusReasonCode": null,
|
|
79
|
-
"tags": [
|
|
80
|
-
{
|
|
81
|
-
"key": null,
|
|
82
|
-
"value": null
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"sid": "si:aliyun:sls_logstore:dev:insight-poc-deploy-app-dev-sls/insight-poc-deploy-dev-insight-poc-fn-fn-logs",
|
|
88
|
-
"id": "insight-poc-deploy-app-dev-sls/insight-poc-deploy-dev-insight-poc-fn-fn-logs",
|
|
89
|
-
"type": "ALIYUN_SLS_LOGSTORE",
|
|
90
|
-
"logstoreName": "insight-poc-deploy-dev-insight-poc-fn-fn-logs"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"sid": "si:aliyun:sls_index:dev:insight-poc-deploy-app-dev-sls/insight-poc-deploy-dev-insight-poc-fn-fn-logs/index",
|
|
94
|
-
"id": "insight-poc-deploy-app-dev-sls/insight-poc-deploy-dev-insight-poc-fn-fn-logs/index",
|
|
95
|
-
"type": "ALIYUN_SLS_INDEX",
|
|
96
|
-
"projectName": "insight-poc-deploy-app-dev-sls",
|
|
97
|
-
"logstoreName": "insight-poc-deploy-dev-insight-poc-fn-fn-logs"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"sid": "si:aliyun:ram_role:dev:insight-poc-deploy-app-insight-poc-deploy-dev-insig-role-160n4hk",
|
|
101
|
-
"id": "insight-poc-deploy-app-insight-poc-deploy-dev-insig-role-160n4hk",
|
|
102
|
-
"type": "ALIYUN_RAM_ROLE",
|
|
103
|
-
"roleArn": "acs:ram::123456789012:role/insight-poc-deploy-app-insight-poc-deploy-dev-insig-role-160n4hk",
|
|
104
|
-
"roleName": "insight-poc-deploy-app-insight-poc-deploy-dev-insig-role-160n4hk",
|
|
105
|
-
"roleId": "role-123",
|
|
106
|
-
"arn": "acs:ram::123456789012:role/insight-poc-deploy-app-insight-poc-deploy-dev-insig-role-160n4hk",
|
|
107
|
-
"policyName": "insight-poc-deploy-app-insight-poc-deploy-dev-insig-role-160n4hk-policy",
|
|
108
|
-
"trustedServices": [
|
|
109
|
-
"fc.aliyuncs.com",
|
|
110
|
-
"apigateway.aliyuncs.com"
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"lastUpdated": "2026-10-27T03:29:35.384Z",
|
|
115
|
-
"status": "ready"
|
|
116
|
-
},
|
|
117
|
-
"events.gateway_event": {
|
|
118
|
-
"mode": "managed",
|
|
119
|
-
"region": "cn-hangzhou",
|
|
120
|
-
"definition": {
|
|
121
|
-
"groupName": "insight-poc-deploy-dev-gateway-event-agw-group",
|
|
122
|
-
"description": "API Gateway group for insight-poc-deploy",
|
|
123
|
-
"basePath": null,
|
|
124
|
-
"triggers": [
|
|
125
|
-
{
|
|
126
|
-
"method": "GET",
|
|
127
|
-
"path": "/api/hello",
|
|
128
|
-
"backend": "insight-poc-fn"
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"domain": null
|
|
132
|
-
},
|
|
133
|
-
"instances": [
|
|
134
|
-
{
|
|
135
|
-
"type": "ALIYUN_APIGW_GROUP",
|
|
136
|
-
"sid": "si:aliyun:apigateway:dev:",
|
|
137
|
-
"id": "",
|
|
138
|
-
"groupId": null,
|
|
139
|
-
"groupName": null,
|
|
140
|
-
"description": null,
|
|
141
|
-
"basePath": null,
|
|
142
|
-
"subDomain": null,
|
|
143
|
-
"instanceId": null,
|
|
144
|
-
"instanceType": null,
|
|
145
|
-
"regionId": null,
|
|
146
|
-
"status": null,
|
|
147
|
-
"createdTime": null,
|
|
148
|
-
"modifiedTime": null,
|
|
149
|
-
"billingStatus": null,
|
|
150
|
-
"illegalStatus": null,
|
|
151
|
-
"trafficLimit": null
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"type": "ALIYUN_APIGW_API",
|
|
155
|
-
"sid": "si:aliyun:apigateway:dev:[object Object]/undefined",
|
|
156
|
-
"id": "",
|
|
157
|
-
"apiId": null,
|
|
158
|
-
"apiName": null,
|
|
159
|
-
"groupId": null,
|
|
160
|
-
"groupName": null,
|
|
161
|
-
"description": null,
|
|
162
|
-
"visibility": null,
|
|
163
|
-
"authType": null,
|
|
164
|
-
"requestConfig": null,
|
|
165
|
-
"serviceConfig": null,
|
|
166
|
-
"resultType": null,
|
|
167
|
-
"resultSample": null,
|
|
168
|
-
"createdTime": null,
|
|
169
|
-
"modifiedTime": null,
|
|
170
|
-
"deployedInfos": null
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"type": "ALIYUN_APIGW_DEPLOYMENT",
|
|
174
|
-
"sid": "si:aliyun:apigateway:dev:[object Object]/[object Object]/RELEASE",
|
|
175
|
-
"id": "[object Object]/[object Object]/RELEASE",
|
|
176
|
-
"groupId": {
|
|
177
|
-
"body": {
|
|
178
|
-
"groupId": "group-123"
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
"apiId": {
|
|
182
|
-
"body": {
|
|
183
|
-
"apiId": "api-123"
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
"stageName": "RELEASE"
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
|
-
"lastUpdated": "2026-10-27T03:29:35.385Z"
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
"shared": {
|
|
193
|
-
"logs.project": {
|
|
194
|
-
"mode": "managed",
|
|
195
|
-
"region": "cn-hangzhou",
|
|
196
|
-
"definition": {
|
|
197
|
-
"projectName": "insight-poc-deploy-app-dev-sls",
|
|
198
|
-
"region": "cn-hangzhou",
|
|
199
|
-
"stage": "dev"
|
|
200
|
-
},
|
|
201
|
-
"instances": [
|
|
202
|
-
{
|
|
203
|
-
"sid": "si:aliyun:sls_project:dev:insight-poc-deploy-app-dev-sls",
|
|
204
|
-
"type": "ALIYUN_SLS_PROJECT",
|
|
205
|
-
"id": "insight-poc-deploy-app-dev-sls"
|
|
206
|
-
}
|
|
207
|
-
],
|
|
208
|
-
"lastUpdated": "2026-10-27T03:29:30.380Z"
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
"lineage": "9feb88fa-29ef-46de-9023-a6150ec92410",
|
|
214
|
-
"serial": 2
|
|
215
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
"lineage": "6596b625-0b01-4c3a-bcc9-de3ec9150425",
|
|
13
|
-
"serial": 1
|
|
14
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "3.0",
|
|
3
|
-
"provider": "aliyun",
|
|
4
|
-
"app": "insight-poc-timer-app",
|
|
5
|
-
"service": "insight-poc-timer",
|
|
6
|
-
"stages": {
|
|
7
|
-
"dev": {
|
|
8
|
-
"resources": {
|
|
9
|
-
"functions.insight_poc_fn": {
|
|
10
|
-
"mode": "managed",
|
|
11
|
-
"region": "cn-hangzhou",
|
|
12
|
-
"definition": {
|
|
13
|
-
"functionName": "insight-poc-timer-fn",
|
|
14
|
-
"runtime": "nodejs18",
|
|
15
|
-
"handler": "index.handler",
|
|
16
|
-
"memorySize": 512,
|
|
17
|
-
"timeout": 10,
|
|
18
|
-
"diskSize": null,
|
|
19
|
-
"environment": {},
|
|
20
|
-
"vpcConfig": null,
|
|
21
|
-
"gpuConfig": null,
|
|
22
|
-
"customContainerConfig": null,
|
|
23
|
-
"nasConfig": null,
|
|
24
|
-
"logConfig": {
|
|
25
|
-
"enableRequestMetrics": false,
|
|
26
|
-
"enableInstanceMetrics": false
|
|
27
|
-
},
|
|
28
|
-
"codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f",
|
|
29
|
-
"timers": [
|
|
30
|
-
{
|
|
31
|
-
"name": "billing-run",
|
|
32
|
-
"cron": "0 23 3 * * *",
|
|
33
|
-
"payload": "{\"job\":\"billing-run\"}",
|
|
34
|
-
"enable": true,
|
|
35
|
-
"description": "daily billing run"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "report-hourly",
|
|
39
|
-
"cron": "@every 1h",
|
|
40
|
-
"enable": false
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"instances": [
|
|
45
|
-
{
|
|
46
|
-
"type": "ALIYUN_FC3_FUNCTION",
|
|
47
|
-
"sid": "si:aliyun:fc3:dev:insight-poc-timer-fn",
|
|
48
|
-
"id": "insight-poc-timer-fn",
|
|
49
|
-
"functionName": "insight-poc-timer-fn",
|
|
50
|
-
"functionArn": null,
|
|
51
|
-
"functionId": null,
|
|
52
|
-
"runtime": "nodejs18",
|
|
53
|
-
"handler": "index.handler",
|
|
54
|
-
"memorySize": 512,
|
|
55
|
-
"timeout": 10,
|
|
56
|
-
"diskSize": null,
|
|
57
|
-
"cpu": null,
|
|
58
|
-
"environment": {},
|
|
59
|
-
"vpcConfig": {},
|
|
60
|
-
"gpuConfig": {},
|
|
61
|
-
"nasConfig": {},
|
|
62
|
-
"logConfig": {
|
|
63
|
-
"project": null,
|
|
64
|
-
"logstore": null,
|
|
65
|
-
"enableRequestMetrics": false,
|
|
66
|
-
"enableInstanceMetrics": false,
|
|
67
|
-
"logBeginRule": null
|
|
68
|
-
},
|
|
69
|
-
"customContainerConfig": {},
|
|
70
|
-
"description": null,
|
|
71
|
-
"internetAccess": null,
|
|
72
|
-
"role": "acs:ram::123456789012:role/insight-poc-timer-app-insight-poc-timer-dev-insight-poc-fn-role",
|
|
73
|
-
"codeChecksum": null,
|
|
74
|
-
"codeSize": null,
|
|
75
|
-
"createdTime": null,
|
|
76
|
-
"lastModifiedTime": null,
|
|
77
|
-
"state": "Running",
|
|
78
|
-
"stateReason": null,
|
|
79
|
-
"stateReasonCode": null,
|
|
80
|
-
"lastUpdateStatus": null,
|
|
81
|
-
"lastUpdateStatusReason": null,
|
|
82
|
-
"lastUpdateStatusReasonCode": null,
|
|
83
|
-
"tags": [
|
|
84
|
-
{
|
|
85
|
-
"key": null,
|
|
86
|
-
"value": null
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"type": "ALIYUN_FC3_TIMER_TRIGGER",
|
|
92
|
-
"id": "billing-run",
|
|
93
|
-
"sid": "si:aliyun:fc3-timer-trigger:dev:insight-poc-timer-fn.billing-run",
|
|
94
|
-
"attributes": {
|
|
95
|
-
"cron": "0 23 3 * * *",
|
|
96
|
-
"payload": "{\"job\":\"billing-run\"}",
|
|
97
|
-
"enable": true,
|
|
98
|
-
"description": "daily billing run"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"type": "ALIYUN_FC3_TIMER_TRIGGER",
|
|
103
|
-
"id": "report-hourly",
|
|
104
|
-
"sid": "si:aliyun:fc3-timer-trigger:dev:insight-poc-timer-fn.report-hourly",
|
|
105
|
-
"attributes": {
|
|
106
|
-
"cron": "@every 1h",
|
|
107
|
-
"enable": false
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"sid": "si:aliyun:ram_role:dev:insight-poc-timer-app-insight-poc-timer-dev-insight-poc-fn-role",
|
|
112
|
-
"id": "insight-poc-timer-app-insight-poc-timer-dev-insight-poc-fn-role",
|
|
113
|
-
"type": "ALIYUN_RAM_ROLE",
|
|
114
|
-
"roleArn": "acs:ram::123456789012:role/insight-poc-timer-app-insight-poc-timer-dev-insight-poc-fn-role",
|
|
115
|
-
"roleName": "insight-poc-timer-app-insight-poc-timer-dev-insight-poc-fn-role",
|
|
116
|
-
"roleId": "role-123",
|
|
117
|
-
"arn": "acs:ram::123456789012:role/insight-poc-timer-app-insight-poc-timer-dev-insight-poc-fn-role",
|
|
118
|
-
"policyName": "insight-poc-timer-app-insight-poc-timer-dev-insight-poc-fn-role-policy",
|
|
119
|
-
"trustedServices": [
|
|
120
|
-
"fc.aliyuncs.com"
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
"lastUpdated": "2026-10-27T03:27:51.177Z"
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
"shared": {}
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"lineage": "90d84e24-4ee1-44fa-a138-125c783be32b",
|
|
131
|
-
"serial": 3
|
|
132
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "3.0",
|
|
3
|
-
"provider": "volcengine",
|
|
4
|
-
"app": "insight-volc-app",
|
|
5
|
-
"service": "insight-volc",
|
|
6
|
-
"stages": {
|
|
7
|
-
"default": {
|
|
8
|
-
"resources": {
|
|
9
|
-
"buckets.static_site": {
|
|
10
|
-
"mode": "managed",
|
|
11
|
-
"region": "cn-beijing",
|
|
12
|
-
"definition": {
|
|
13
|
-
"bucketName": "insight-volc-static-bucket",
|
|
14
|
-
"acl": "public-read",
|
|
15
|
-
"storageClass": null,
|
|
16
|
-
"websiteConfiguration": null,
|
|
17
|
-
"websiteCodeHash": null,
|
|
18
|
-
"policy": null
|
|
19
|
-
},
|
|
20
|
-
"instances": [
|
|
21
|
-
{
|
|
22
|
-
"type": "VOLCENGINE_TOS_BUCKET",
|
|
23
|
-
"sid": "si:volcengine:tos:default:insight-volc-static-bucket",
|
|
24
|
-
"id": "insight-volc-static-bucket",
|
|
25
|
-
"bucketName": "insight-volc-static-bucket",
|
|
26
|
-
"location": null,
|
|
27
|
-
"creationDate": null,
|
|
28
|
-
"storageClass": null,
|
|
29
|
-
"extranetEndpoint": null,
|
|
30
|
-
"intranetEndpoint": null,
|
|
31
|
-
"acl": "private",
|
|
32
|
-
"websiteConfig": null,
|
|
33
|
-
"Tags": [],
|
|
34
|
-
"owner": null,
|
|
35
|
-
"projectName": null,
|
|
36
|
-
"bucketType": null,
|
|
37
|
-
"azRedundancy": null,
|
|
38
|
-
"extranetS3Endpoint": null,
|
|
39
|
-
"intranetS3Endpoint": null,
|
|
40
|
-
"versioning": null,
|
|
41
|
-
"crossRegionReplication": null,
|
|
42
|
-
"transferAcceleration": null,
|
|
43
|
-
"accessMonitor": null,
|
|
44
|
-
"serverSideEncryptionConfiguration": null
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"lastUpdated": "2026-10-27T03:29:49.172Z"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"shared": {}
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"lineage": "6bf13cbc-2ee5-47be-bd2c-f7f07413d865",
|
|
54
|
-
"serial": 4
|
|
55
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
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":{}}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "3.0",
|
|
3
|
-
"provider": "volcengine",
|
|
4
|
-
"app": "insight-volc-nested-app",
|
|
5
|
-
"service": "insight-volc-nested",
|
|
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-nested-app-dev-tls",
|
|
25
|
-
"topic": "insight-volc-nested-dev-insight_poc_fn-fn-logs"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"instances": [
|
|
29
|
-
{
|
|
30
|
-
"type": "VOLCENGINE_VEFAAS_FUNCTION",
|
|
31
|
-
"sid": "si:volcengine:insight-volc-nested: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-nested-app-dev-tls/insight-volc-nested-dev-insight_poc_fn-fn-logs",
|
|
46
|
-
"id": "insight-volc-nested-app-dev-tls/insight-volc-nested-dev-insight_poc_fn-fn-logs",
|
|
47
|
-
"type": "VOLCENGINE_TLS_TOPIC",
|
|
48
|
-
"topicName": "insight-volc-nested-dev-insight_poc_fn-fn-logs",
|
|
49
|
-
"topicId": "topic-123"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"sid": "si:volcengine:tls_index:dev:insight-volc-nested-app-dev-tls/insight-volc-nested-dev-insight_poc_fn-fn-logs/index",
|
|
53
|
-
"id": "insight-volc-nested-app-dev-tls/insight-volc-nested-dev-insight_poc_fn-fn-logs/index",
|
|
54
|
-
"type": "VOLCENGINE_TLS_INDEX"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"sid": "si:volcengine:iam_role:dev:insight-volc-nested-app-insight-volc-nested-dev-ins-role-1qdqnoa",
|
|
58
|
-
"id": "insight-volc-nested-app-insight-volc-nested-dev-ins-role-1qdqnoa",
|
|
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-10-27T03:26:08.172Z"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"shared": {
|
|
70
|
-
"logs.project": {
|
|
71
|
-
"mode": "managed",
|
|
72
|
-
"region": "cn-beijing",
|
|
73
|
-
"definition": {
|
|
74
|
-
"projectName": "insight-volc-nested-app-dev-tls",
|
|
75
|
-
"region": "cn-beijing",
|
|
76
|
-
"stage": "dev"
|
|
77
|
-
},
|
|
78
|
-
"instances": [
|
|
79
|
-
{
|
|
80
|
-
"sid": "si:volcengine:tls:dev:insight-volc-nested-app-dev-tls",
|
|
81
|
-
"type": "VOLCENGINE_TLS_PROJECT",
|
|
82
|
-
"id": "insight-volc-nested-app-dev-tls",
|
|
83
|
-
"projectId": "proj-123"
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
"lastUpdated": "2026-10-27T03:26:05.120Z"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"lineage": "bca5f86c-9063-4c8d-80c9-696dd7dec5f0",
|
|
92
|
-
"serial": 5
|
|
93
|
-
}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "3.0",
|
|
3
|
-
"provider": "aliyun",
|
|
4
|
-
"app": "nested-drift-app",
|
|
5
|
-
"service": "nested-drift-service",
|
|
6
|
-
"stages": {
|
|
7
|
-
"dev": {
|
|
8
|
-
"resources": {
|
|
9
|
-
"functions.nested_fn": {
|
|
10
|
-
"mode": "managed",
|
|
11
|
-
"region": "cn-hangzhou",
|
|
12
|
-
"definition": {
|
|
13
|
-
"functionName": "nested-drift-fn",
|
|
14
|
-
"runtime": "nodejs18",
|
|
15
|
-
"handler": "index.handler",
|
|
16
|
-
"memorySize": 128,
|
|
17
|
-
"timeout": 10,
|
|
18
|
-
"diskSize": null,
|
|
19
|
-
"environment": {},
|
|
20
|
-
"vpcConfig": {
|
|
21
|
-
"vpcId": "vpc-123",
|
|
22
|
-
"vSwitchIds": [
|
|
23
|
-
"vsw-123"
|
|
24
|
-
],
|
|
25
|
-
"securityGroupId": "sg-123"
|
|
26
|
-
},
|
|
27
|
-
"gpuConfig": null,
|
|
28
|
-
"customContainerConfig": null,
|
|
29
|
-
"nasConfig": {
|
|
30
|
-
"userId": -1,
|
|
31
|
-
"groupId": -1,
|
|
32
|
-
"mountPoints": [
|
|
33
|
-
{
|
|
34
|
-
"serverAddr": "fs-123.repaired.cn-hangzhou.nas.aliyuncs.com:/",
|
|
35
|
-
"mountDir": "/mnt/data"
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
"nasStorage": [
|
|
40
|
-
{
|
|
41
|
-
"mount_path": "/mnt/data",
|
|
42
|
-
"storage_class": "STANDARD_PERFORMANCE"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"logConfig": {
|
|
46
|
-
"enableRequestMetrics": false,
|
|
47
|
-
"enableInstanceMetrics": false
|
|
48
|
-
},
|
|
49
|
-
"codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f"
|
|
50
|
-
},
|
|
51
|
-
"instances": [
|
|
52
|
-
{
|
|
53
|
-
"type": "ALIYUN_FC3_FUNCTION",
|
|
54
|
-
"sid": "si:aliyun:fc3:dev:nested-drift-fn",
|
|
55
|
-
"id": "nested-drift-fn",
|
|
56
|
-
"functionName": "nested-drift-fn",
|
|
57
|
-
"functionArn": null,
|
|
58
|
-
"functionId": null,
|
|
59
|
-
"runtime": "nodejs18",
|
|
60
|
-
"handler": "index.handler",
|
|
61
|
-
"memorySize": 128,
|
|
62
|
-
"timeout": 10,
|
|
63
|
-
"diskSize": null,
|
|
64
|
-
"cpu": null,
|
|
65
|
-
"environment": {},
|
|
66
|
-
"vpcConfig": {
|
|
67
|
-
"vpcId": "vpc-123",
|
|
68
|
-
"vSwitchIds": [
|
|
69
|
-
"vsw-123"
|
|
70
|
-
],
|
|
71
|
-
"securityGroupId": "sg-123"
|
|
72
|
-
},
|
|
73
|
-
"gpuConfig": {},
|
|
74
|
-
"nasConfig": {
|
|
75
|
-
"userId": -1,
|
|
76
|
-
"groupId": -1,
|
|
77
|
-
"mountPoints": [
|
|
78
|
-
{
|
|
79
|
-
"serverAddr": "fs-123.repaired.cn-hangzhou.nas.aliyuncs.com:/",
|
|
80
|
-
"mountDir": "/mnt/data",
|
|
81
|
-
"enableTls": null
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
"logConfig": {
|
|
86
|
-
"project": null,
|
|
87
|
-
"logstore": null,
|
|
88
|
-
"enableRequestMetrics": false,
|
|
89
|
-
"enableInstanceMetrics": false,
|
|
90
|
-
"logBeginRule": null
|
|
91
|
-
},
|
|
92
|
-
"customContainerConfig": {},
|
|
93
|
-
"description": null,
|
|
94
|
-
"internetAccess": null,
|
|
95
|
-
"role": "acs:ram::123456789012:role/nested-drift-app-nested-drift-service-dev-nested-fn-role",
|
|
96
|
-
"codeChecksum": null,
|
|
97
|
-
"codeSize": null,
|
|
98
|
-
"createdTime": null,
|
|
99
|
-
"lastModifiedTime": null,
|
|
100
|
-
"state": "Running",
|
|
101
|
-
"stateReason": null,
|
|
102
|
-
"stateReasonCode": null,
|
|
103
|
-
"lastUpdateStatus": null,
|
|
104
|
-
"lastUpdateStatusReason": null,
|
|
105
|
-
"lastUpdateStatusReasonCode": null,
|
|
106
|
-
"tags": [
|
|
107
|
-
{
|
|
108
|
-
"key": null,
|
|
109
|
-
"value": null
|
|
110
|
-
}
|
|
111
|
-
]
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"sid": "si:aliyun:ram_role:dev:nested-drift-app-nested-drift-service-dev-nested-fn-role",
|
|
115
|
-
"id": "nested-drift-app-nested-drift-service-dev-nested-fn-role",
|
|
116
|
-
"type": "ALIYUN_RAM_ROLE",
|
|
117
|
-
"roleArn": "acs:ram::123456789012:role/nested-drift-app-nested-drift-service-dev-nested-fn-role",
|
|
118
|
-
"roleName": "nested-drift-app-nested-drift-service-dev-nested-fn-role",
|
|
119
|
-
"roleId": "role-123",
|
|
120
|
-
"arn": "acs:ram::123456789012:role/nested-drift-app-nested-drift-service-dev-nested-fn-role",
|
|
121
|
-
"policyName": "nested-drift-app-nested-drift-service-dev-nested-fn-role-policy",
|
|
122
|
-
"trustedServices": [
|
|
123
|
-
"fc.aliyuncs.com"
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"sid": "si:aliyun:ecs_security_group:dev:sg-123",
|
|
128
|
-
"id": "sg-123",
|
|
129
|
-
"type": "ALIYUN_ECS_SECURITY_GROUP",
|
|
130
|
-
"securityGroupId": "sg-123",
|
|
131
|
-
"securityGroupName": "nested-drift-sg"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"sid": "si:aliyun:nas_access_group:dev:nested-drift-fn-dev-nas-access-mnt-data",
|
|
135
|
-
"id": "nested-drift-fn-dev-nas-access-mnt-data",
|
|
136
|
-
"type": "ALIYUN_NAS_ACCESS_GROUP",
|
|
137
|
-
"accessRules": [
|
|
138
|
-
{}
|
|
139
|
-
]
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"sid": "si:aliyun:nas_file_system:dev:fs-123",
|
|
143
|
-
"id": "fs-123",
|
|
144
|
-
"type": "ALIYUN_NAS_FILE_SYSTEM",
|
|
145
|
-
"fileSystemId": "fs-123"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"sid": "si:aliyun:nas_mount_target:dev:fs-123/fs-123.cn-hangzhou.nas.aliyuncs.com",
|
|
149
|
-
"id": "fs-123/fs-123.repaired.cn-hangzhou.nas.aliyuncs.com",
|
|
150
|
-
"type": "ALIYUN_NAS_MOUNT_TARGET",
|
|
151
|
-
"mountTargetDomain": "fs-123.cn-hangzhou.nas.aliyuncs.com",
|
|
152
|
-
"accessGroupName": "nested-drift-fn-dev-nas-access-mnt-data"
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
"lastUpdated": "2026-10-27T03:26:05.008Z"
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
"shared": {}
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
"lineage": "d41db85e-aae6-4459-a920-604154f55cb0",
|
|
162
|
-
"serial": 4
|
|
163
|
-
}
|