@geek-fun/serverlessinsight 0.9.4 → 0.9.5

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.
Files changed (76) hide show
  1. package/AGENTS.md +5 -2
  2. package/CHANGELOG.md +28 -0
  3. package/README.md +26 -6
  4. package/README.zh-CN.md +26 -6
  5. package/codecov +0 -0
  6. package/codecov.SHA256SUM +1 -1
  7. package/codecov.SHA256SUM.sig +13 -13
  8. package/dist/package.json +1 -1
  9. package/dist/src/commands/deploy.js +7 -2
  10. package/dist/src/commands/destroy.js +6 -3
  11. package/dist/src/commands/forceUnlock.js +16 -21
  12. package/dist/src/commands/index.js +14 -4
  13. package/dist/src/commands/migrate.js +105 -132
  14. package/dist/src/commands/plan.js +2 -2
  15. package/dist/src/commands/show.js +17 -6
  16. package/dist/src/common/aggregateState.js +185 -0
  17. package/dist/src/common/aggregateStore.js +247 -0
  18. package/dist/src/common/apiClient.js +35 -12
  19. package/dist/src/common/constants.js +2 -1
  20. package/dist/src/common/context.js +22 -15
  21. package/dist/src/common/effectiveConfig.js +48 -0
  22. package/dist/src/common/index.js +5 -0
  23. package/dist/src/common/jsonOutput.js +2 -13
  24. package/dist/src/common/migrationMarker.js +0 -7
  25. package/dist/src/common/nameBuilder.js +2 -3
  26. package/dist/src/common/regionalMigration.js +261 -0
  27. package/dist/src/common/saasProtocol.js +41 -0
  28. package/dist/src/common/stateBackend/cosStateBackend.js +88 -8
  29. package/dist/src/common/stateBackend/index.js +42 -18
  30. package/dist/src/common/stateBackend/localStateBackend.js +61 -26
  31. package/dist/src/common/stateBackend/ossStateBackend.js +62 -9
  32. package/dist/src/common/stateBackend/remoteStateBackend.js +94 -94
  33. package/dist/src/common/stateBackend/saasStateBackend.js +327 -92
  34. package/dist/src/common/stateBackend/types.js +9 -0
  35. package/dist/src/common/stateManager.js +38 -11
  36. package/dist/src/common/stateScope.js +34 -0
  37. package/dist/src/common/stateStorageIO.js +31 -0
  38. package/dist/src/lang/en.js +43 -2
  39. package/dist/src/lang/zh-CN.js +43 -2
  40. package/dist/src/parser/index.js +25 -4
  41. package/dist/src/stack/aliyunStack/deployer.js +5 -5
  42. package/dist/src/stack/aliyunStack/destroyer.js +5 -5
  43. package/dist/src/stack/aliyunStack/fc3Planner.js +1 -1
  44. package/dist/src/stack/aliyunStack/fc3Resource.js +2 -2
  45. package/dist/src/stack/aliyunStack/planner.js +1 -1
  46. package/dist/src/stack/aliyunStack/sharedLogProject.js +2 -2
  47. package/dist/src/stack/ownershipTag.js +34 -26
  48. package/dist/src/stack/scfStack/deployer.js +5 -5
  49. package/dist/src/stack/scfStack/destroyer.js +5 -6
  50. package/dist/src/stack/scfStack/planner.js +1 -1
  51. package/dist/src/stack/scfStack/scfResource.js +1 -1
  52. package/dist/src/stack/scfStack/sharedLogset.js +5 -2
  53. package/dist/src/stack/volcengineStack/deployer.js +3 -3
  54. package/dist/src/stack/volcengineStack/destroyer.js +2 -3
  55. package/dist/src/stack/volcengineStack/planner.js +1 -1
  56. package/dist/src/stack/volcengineStack/sharedLogProject.js +4 -4
  57. package/dist/src/stack/volcengineStack/vefaasResource.js +1 -1
  58. package/dist/src/types/domains/state.js +28 -2
  59. package/dist/src/validator/rootSchema.js +8 -0
  60. package/dist/tsconfig.tsbuildinfo +1 -1
  61. package/package.json +1 -1
  62. package/release-notes.md +29 -32
  63. package/samples/README_TENCENT_COS.md +65 -23
  64. package/samples/README_TENCENT_SCF.md +44 -26
  65. package/.serverlessinsight/state-cdn-flow-app-cdn-flow-service.json.backup +0 -14
  66. package/.serverlessinsight/state-iam-test-app-iam-test-service.json.backup +0 -32
  67. package/.serverlessinsight/state-insight-poc-app-insight-poc-tencent.json.backup +0 -90
  68. package/.serverlessinsight/state-insight-poc-app-log-insight-poc-tencent-log.json.backup +0 -118
  69. package/.serverlessinsight/state-insight-poc-deploy-app-insight-poc-deploy.json.backup +0 -215
  70. package/.serverlessinsight/state-insight-poc-destroy-app-insight-poc-destroy.json.backup +0 -14
  71. package/.serverlessinsight/state-insight-poc-timer-app-insight-poc-timer.json.backup +0 -132
  72. package/.serverlessinsight/state-insight-volc-app-insight-volc.json.backup +0 -55
  73. package/.serverlessinsight/state-insight-volc-destroy-app-insight-volc-destroy.json.backup +0 -1
  74. package/.serverlessinsight/state-insight-volc-nested-app-insight-volc-nested.json.backup +0 -93
  75. package/.serverlessinsight/state-nested-drift-app-nested-drift-service.json.backup +0 -163
  76. package/.serverlessinsight/state-role-reconcile-test-app-role-reconcile-test-service.json.backup +0 -148
@@ -6,7 +6,7 @@ This guide demonstrates how to use ServerlessInsight with Tencent Cloud SCF usin
6
6
 
7
7
  The Tencent SCF support introduces a Terraform-like infrastructure management approach with:
8
8
 
9
- - **State Management**: Local state tracking in `.serverlessinsight/state.json`
9
+ - **State Management**: Local state tracking in `.serverlessinsight/state-example-app-my-service.json`
10
10
  - **Plan & Apply Flow**: Preview changes before applying them
11
11
  - **Drift Detection**: Detect manual changes made outside ServerlessInsight
12
12
  - **Idempotent Operations**: Safe to re-run deployments
@@ -38,13 +38,18 @@ stages:
38
38
  prod:
39
39
  node_env: production
40
40
 
41
+ app: example-app
41
42
  service: my-service
42
43
 
44
+ backend:
45
+ state_manager:
46
+ type: LOCAL
47
+
43
48
  functions:
44
49
  my_function:
45
50
  name: my-function-name
46
51
  code:
47
- runtime: Nodejs18.15
52
+ runtime: nodejs18
48
53
  handler: index.handler
49
54
  path: path/to/function.zip
50
55
  memory: 512
@@ -88,7 +93,7 @@ Output shows:
88
93
  Apply the infrastructure changes:
89
94
 
90
95
  ```bash
91
- si deploy my-stack \
96
+ si deploy \
92
97
  -f serverless-insight.yml \
93
98
  -r ap-guangzhou \
94
99
  -k YOUR_SECRET_ID \
@@ -99,37 +104,50 @@ The deploy command will:
99
104
 
100
105
  1. Generate a plan
101
106
  2. Execute the plan (create/update/delete functions)
102
- 3. Save the state to `.serverlessinsight/state.json`
107
+ 3. Save the state to `.serverlessinsight/state-example-app-my-service.json`
103
108
 
104
109
  ### Validate
105
110
 
106
111
  Validate your YAML configuration:
107
112
 
108
113
  ```bash
109
- si validate my-stack -f serverless-insight.yml
114
+ si validate -f serverless-insight.yml
110
115
  ```
111
116
 
112
117
  ## State Management
113
118
 
114
- State is stored locally in `.serverlessinsight/state.json`:
119
+ With the explicit LOCAL backend above, state remains at
120
+ `.serverlessinsight/state-example-app-my-service.json`. The V4 aggregate contains
121
+ independent stage/provider/region partitions, for example after selecting `-s prod`:
115
122
 
116
123
  ```json
117
124
  {
118
- "version": "0.1",
119
- "provider": "tencent",
120
- "resources": {
121
- "functions.my_function": {
122
- "type": "SCF",
123
- "physicalId": "my-function-name",
124
- "region": "ap-guangzhou",
125
- "configHash": "abc123...",
126
- "lastUpdated": "2025-01-01T12:00:00Z"
125
+ "version": "4.0",
126
+ "app": "example-app",
127
+ "service": "my-service",
128
+ "stages": {
129
+ "prod": {
130
+ "providers": {
131
+ "tencent": {
132
+ "regions": {
133
+ "ap-guangzhou": {
134
+ "lineage": "deployment-uuid",
135
+ "serial": 1,
136
+ "resources": {},
137
+ "shared": {}
138
+ }
139
+ }
140
+ }
141
+ }
127
142
  }
128
143
  }
129
144
  }
130
145
  ```
131
146
 
132
- **Important**: Add `.serverlessinsight/` to your `.gitignore` if you don't want to commit state files.
147
+ The executor works with only the selected partition. Its native IDs and revision are
148
+ preserved when another provider/region is deployed. All partitions in this file share
149
+ one deployment lock. See [deployment state and migration](../docs/regional-deployment-state.md).
150
+ Keep state and credentials out of version control.
133
151
 
134
152
  ## Idempotency
135
153
 
@@ -137,10 +155,10 @@ Running `si deploy` multiple times with the same configuration is safe:
137
155
 
138
156
  ```bash
139
157
  # First run - creates the function
140
- si deploy my-stack -f serverless-insight.yml
158
+ si deploy -f serverless-insight.yml
141
159
 
142
160
  # Second run - detects no changes needed
143
- si deploy my-stack -f serverless-insight.yml
161
+ si deploy -f serverless-insight.yml
144
162
  ```
145
163
 
146
164
  ## Drift Detection
@@ -186,10 +204,10 @@ Deploy to different stages:
186
204
 
187
205
  ```bash
188
206
  # Deploy to dev
189
- si deploy my-stack -f serverless-insight.yml --stage dev
207
+ si deploy -f serverless-insight.yml --stage dev
190
208
 
191
209
  # Deploy to prod
192
- si deploy my-stack -f serverless-insight.yml --stage prod
210
+ si deploy -f serverless-insight.yml --stage prod
193
211
  ```
194
212
 
195
213
  ## Function Configuration
@@ -239,7 +257,7 @@ Ensure your Secret ID and Secret Key are correct:
239
257
  export TENCENTCLOUD_SECRET_ID=your_secret_id
240
258
  export TENCENTCLOUD_SECRET_KEY=your_secret_key
241
259
 
242
- si deploy my-stack -f serverless-insight.yml
260
+ si deploy -f serverless-insight.yml
243
261
  ```
244
262
 
245
263
  ### Function Not Found
@@ -248,10 +266,10 @@ If you see "ResourceNotFound.FunctionName", the function doesn't exist yet. Run
248
266
 
249
267
  ### State File Conflicts
250
268
 
251
- If you encounter state conflicts, you can:
252
-
253
- 1. Delete `.serverlessinsight/state.json` and re-deploy (will recreate resources)
254
- 2. Manually edit the state file (advanced users only)
269
+ Keep the current state and backups. Confirm App/Service/Stage/Provider/Region and the
270
+ backend location, wait for the active writer, then refetch and re-plan. Write commands
271
+ automatically upgrade released V3 state in place; rerun the original operation to resume
272
+ an interrupted upgrade. Deleting or hand-editing state can lose sibling ownership.
255
273
 
256
274
  ## Limitations
257
275
 
@@ -260,7 +278,7 @@ Current limitations:
260
278
  - No support for VPC configuration
261
279
  - No support for triggers (API Gateway, COS, etc.)
262
280
  - No support for layers
263
- - No remote state backends
281
+ - Local, Bucket and SaaS backends have different lock scopes; choose the backend explicitly when following this Local example.
264
282
  - No cross-resource dependencies
265
283
 
266
284
  These features will be added in future releases.
@@ -1,14 +0,0 @@
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
- "lineage": "6c565df9-f6b3-4643-8702-8afb0da5c4cb",
13
- "serial": 5
14
- }
@@ -1,32 +0,0 @@
1
- {
2
- "version": "3.0",
3
- "provider": "aliyun",
4
- "app": "iam-test-app",
5
- "service": "iam-test-service",
6
- "stages": {
7
- "dev": {
8
- "resources": {},
9
- "shared": {
10
- "logs.project": {
11
- "mode": "managed",
12
- "region": "cn-hangzhou",
13
- "definition": {
14
- "projectName": "iam-test-app-dev-sls",
15
- "region": "cn-hangzhou",
16
- "stage": "dev"
17
- },
18
- "instances": [
19
- {
20
- "sid": "si:aliyun:sls_project:dev:iam-test-app-dev-sls",
21
- "type": "ALIYUN_SLS_PROJECT",
22
- "id": "iam-test-app-dev-sls"
23
- }
24
- ],
25
- "lastUpdated": "2026-10-27T03:28:43.284Z"
26
- }
27
- }
28
- }
29
- },
30
- "lineage": "273e372c-c828-4b97-bd99-ee0bc9d7d154",
31
- "serial": 3
32
- }
@@ -1,90 +0,0 @@
1
- {
2
- "version": "3.0",
3
- "provider": "tencent",
4
- "app": "insight-poc-app",
5
- "service": "insight-poc-tencent",
6
- "stages": {
7
- "default": {
8
- "resources": {
9
- "functions.test_fn": {
10
- "mode": "managed",
11
- "region": "ap-guangzhou",
12
- "definition": {
13
- "functionName": "test-fn",
14
- "runtime": "Nodejs18.15",
15
- "handler": "index.handler",
16
- "memorySize": 512,
17
- "timeout": 10,
18
- "environment": {},
19
- "codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f",
20
- "vpcConfig": null,
21
- "diskSize": null,
22
- "cfsConfig": null,
23
- "useGpu": null,
24
- "imageConfig": null,
25
- "logEnabled": false
26
- },
27
- "instances": [
28
- {
29
- "sid": "si:tencent:scf:default:test-fn",
30
- "id": "test-fn",
31
- "functionName": "test-fn",
32
- "runtime": "Nodejs18.15",
33
- "handler": "index.handler",
34
- "memorySize": 256,
35
- "timeout": 10,
36
- "environment": {},
37
- "modTime": null,
38
- "codeSha256": null,
39
- "codeInfo": null,
40
- "description": null,
41
- "triggers": [],
42
- "codeSize": null,
43
- "functionVersion": null,
44
- "vpcConfig": {},
45
- "useGpu": null,
46
- "codeResult": null,
47
- "codeError": null,
48
- "errNo": null,
49
- "namespace": null,
50
- "role": null,
51
- "installDependency": null,
52
- "status": "Active",
53
- "statusDesc": null,
54
- "clsLogsetId": null,
55
- "clsTopicId": null,
56
- "functionId": null,
57
- "tags": [],
58
- "eipConfig": {},
59
- "accessInfo": {},
60
- "type": null,
61
- "l5Enable": null,
62
- "layers": [],
63
- "deadLetterConfig": {},
64
- "addTime": null,
65
- "publicNetConfig": {},
66
- "onsEnable": null,
67
- "cfsConfig": {},
68
- "availableStatus": null,
69
- "qualifier": null,
70
- "initTimeout": null,
71
- "statusReasons": [],
72
- "asyncRunEnable": null,
73
- "traceEnable": null,
74
- "imageConfig": {},
75
- "protocolType": null,
76
- "protocolParams": {},
77
- "dnsCache": null,
78
- "intranetConfig": {},
79
- "instanceConcurrencyConfig": {}
80
- }
81
- ],
82
- "lastUpdated": "2026-10-27T03:29:23.178Z"
83
- }
84
- },
85
- "shared": {}
86
- }
87
- },
88
- "lineage": "77724ac6-4273-413d-a5a2-b6aaa9c13ecd",
89
- "serial": 4
90
- }
@@ -1,118 +0,0 @@
1
- {
2
- "version": "3.0",
3
- "provider": "tencent",
4
- "app": "insight-poc-app-log",
5
- "service": "insight-poc-tencent-log",
6
- "stages": {
7
- "default": {
8
- "resources": {
9
- "functions.log_fn": {
10
- "mode": "managed",
11
- "region": "ap-guangzhou",
12
- "definition": {
13
- "functionName": "test-log-fn",
14
- "runtime": "Nodejs18.15",
15
- "handler": "index.handler",
16
- "memorySize": 512,
17
- "timeout": 10,
18
- "environment": {},
19
- "codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f",
20
- "vpcConfig": null,
21
- "diskSize": null,
22
- "cfsConfig": null,
23
- "useGpu": null,
24
- "imageConfig": null,
25
- "logConfig": {
26
- "logset": "insight-poc-app-log-default-cls",
27
- "topic": "insight-poc-tencent-log-default-log_fn-fn-logs"
28
- }
29
- },
30
- "instances": [
31
- {
32
- "sid": "si:tencent:scf:default:test-log-fn",
33
- "id": "test-log-fn",
34
- "functionName": "test-log-fn",
35
- "runtime": "Nodejs18.15",
36
- "handler": "index.handler",
37
- "memorySize": 512,
38
- "timeout": 10,
39
- "environment": {},
40
- "modTime": null,
41
- "codeSha256": null,
42
- "codeInfo": null,
43
- "description": null,
44
- "triggers": [],
45
- "codeSize": null,
46
- "functionVersion": null,
47
- "vpcConfig": {},
48
- "useGpu": null,
49
- "codeResult": null,
50
- "codeError": null,
51
- "errNo": null,
52
- "namespace": null,
53
- "role": null,
54
- "installDependency": null,
55
- "status": "Active",
56
- "statusDesc": null,
57
- "clsLogsetId": null,
58
- "clsTopicId": null,
59
- "functionId": null,
60
- "tags": [],
61
- "eipConfig": {},
62
- "accessInfo": {},
63
- "type": null,
64
- "l5Enable": null,
65
- "layers": [],
66
- "deadLetterConfig": {},
67
- "addTime": null,
68
- "publicNetConfig": {},
69
- "onsEnable": null,
70
- "cfsConfig": {},
71
- "availableStatus": null,
72
- "qualifier": null,
73
- "initTimeout": null,
74
- "statusReasons": [],
75
- "asyncRunEnable": null,
76
- "traceEnable": null,
77
- "imageConfig": {},
78
- "protocolType": null,
79
- "protocolParams": {},
80
- "dnsCache": null,
81
- "intranetConfig": {},
82
- "instanceConcurrencyConfig": {}
83
- },
84
- {
85
- "sid": "si:tencent:cls-topic:default:insight-poc-tencent-log-default-log_fn-fn-logs",
86
- "type": "TENCENT_CLS_TOPIC",
87
- "id": "topic-1",
88
- "topicName": "insight-poc-tencent-log-default-log_fn-fn-logs"
89
- }
90
- ],
91
- "lastUpdated": "2026-10-27T03:26:05.076Z"
92
- }
93
- },
94
- "shared": {
95
- "logs.project": {
96
- "mode": "managed",
97
- "region": "ap-guangzhou",
98
- "definition": {
99
- "logsetName": "insight-poc-app-log-default-cls",
100
- "region": "ap-guangzhou",
101
- "stage": "default"
102
- },
103
- "instances": [
104
- {
105
- "sid": "si:tencent:cls-logset:default:insight-poc-app-log-default-cls",
106
- "type": "TENCENT_CLS_LOGSET",
107
- "id": "insight-poc-app-log-default-cls",
108
- "logsetId": "logset-1"
109
- }
110
- ],
111
- "lastUpdated": "2026-10-27T03:26:05.052Z"
112
- }
113
- }
114
- }
115
- },
116
- "lineage": "998d7efe-600f-45d2-a0a1-d09f7ad4ac73",
117
- "serial": 4
118
- }
@@ -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
- }