@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
@@ -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
- }
@@ -1,148 +0,0 @@
1
- {
2
- "version": "3.0",
3
- "provider": "aliyun",
4
- "app": "role-reconcile-test-app",
5
- "service": "role-reconcile-test-service",
6
- "stages": {
7
- "dev": {
8
- "resources": {
9
- "functions.role_reconcile_fn": {
10
- "mode": "managed",
11
- "region": "cn-hangzhou",
12
- "definition": {
13
- "functionName": "role-reconcile-fn",
14
- "runtime": "nodejs18",
15
- "handler": "index.handler",
16
- "memorySize": 128,
17
- "timeout": 10,
18
- "diskSize": null,
19
- "environment": {},
20
- "vpcConfig": null,
21
- "gpuConfig": null,
22
- "customContainerConfig": null,
23
- "nasConfig": null,
24
- "logConfig": {
25
- "project": "role-reconcile-test-app-dev-sls",
26
- "logstore": "role-reconcile-test-service-dev-role-reconcile-fn-fn-logs",
27
- "enableRequestMetrics": true,
28
- "enableInstanceMetrics": true
29
- },
30
- "codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f",
31
- "iam": {
32
- "role": {
33
- "statements": [
34
- {
35
- "sid": "OSSRead",
36
- "effect": "Allow",
37
- "action": [
38
- "oss:GetObject"
39
- ],
40
- "resource": [
41
- "acs:oss:*:*:my-bucket/*"
42
- ]
43
- }
44
- ]
45
- }
46
- }
47
- },
48
- "instances": [
49
- {
50
- "type": "ALIYUN_FC3_FUNCTION",
51
- "sid": "si:aliyun:fc3:dev:role-reconcile-fn",
52
- "id": "role-reconcile-fn",
53
- "functionName": "role-reconcile-fn",
54
- "functionArn": null,
55
- "functionId": null,
56
- "runtime": "nodejs18",
57
- "handler": "index.handler",
58
- "memorySize": 128,
59
- "timeout": 10,
60
- "diskSize": null,
61
- "cpu": null,
62
- "environment": {},
63
- "vpcConfig": {},
64
- "gpuConfig": {},
65
- "nasConfig": {},
66
- "logConfig": {
67
- "project": "role-reconcile-test-app-dev-sls",
68
- "logstore": "role-reconcile-test-service-dev-role-reconcile-fn-fn-logs",
69
- "enableRequestMetrics": true,
70
- "enableInstanceMetrics": true,
71
- "logBeginRule": null
72
- },
73
- "customContainerConfig": {},
74
- "description": null,
75
- "internetAccess": null,
76
- "role": "acs:ram::123456789012:role/role-reconcile-test-app-role-reconcile-test-service-role-0kzfky0",
77
- "codeChecksum": null,
78
- "codeSize": null,
79
- "createdTime": null,
80
- "lastModifiedTime": null,
81
- "state": "Running",
82
- "stateReason": null,
83
- "stateReasonCode": null,
84
- "lastUpdateStatus": null,
85
- "lastUpdateStatusReason": null,
86
- "lastUpdateStatusReasonCode": null,
87
- "tags": [
88
- {
89
- "key": null,
90
- "value": null
91
- }
92
- ]
93
- },
94
- {
95
- "sid": "si:aliyun:sls_logstore:dev:role-reconcile-test-app-dev-sls/role-reconcile-test-service-dev-role-reconcile-fn-fn-logs",
96
- "id": "role-reconcile-test-app-dev-sls/role-reconcile-test-service-dev-role-reconcile-fn-fn-logs",
97
- "type": "ALIYUN_SLS_LOGSTORE",
98
- "logstoreName": "role-reconcile-test-service-dev-role-reconcile-fn-fn-logs"
99
- },
100
- {
101
- "sid": "si:aliyun:sls_index:dev:role-reconcile-test-app-dev-sls/role-reconcile-test-service-dev-role-reconcile-fn-fn-logs/index",
102
- "id": "role-reconcile-test-app-dev-sls/role-reconcile-test-service-dev-role-reconcile-fn-fn-logs/index",
103
- "type": "ALIYUN_SLS_INDEX",
104
- "projectName": "role-reconcile-test-app-dev-sls",
105
- "logstoreName": "role-reconcile-test-service-dev-role-reconcile-fn-fn-logs"
106
- },
107
- {
108
- "sid": "si:aliyun:ram_role:dev:role-reconcile-test-app-role-reconcile-test-service-role-0kzfky0",
109
- "id": "role-reconcile-test-app-role-reconcile-test-service-role-0kzfky0",
110
- "type": "ALIYUN_RAM_ROLE",
111
- "roleArn": "acs:ram::123456789012:role/role-reconcile-test-app-role-reconcile-test-service-role-0kzfky0",
112
- "roleName": "role-reconcile-test-app-role-reconcile-test-service-role-0kzfky0",
113
- "roleId": "role-123",
114
- "arn": "acs:ram::123456789012:role/role-reconcile-test-app-role-reconcile-test-service-role-0kzfky0",
115
- "policyName": "role-reconcile-test-app-role-reconcile-test-service-role-0kzfky0-policy",
116
- "trustedServices": [
117
- "fc.aliyuncs.com"
118
- ]
119
- }
120
- ],
121
- "lastUpdated": "2026-10-27T03:28:19.566Z",
122
- "status": "ready"
123
- }
124
- },
125
- "shared": {
126
- "logs.project": {
127
- "mode": "managed",
128
- "region": "cn-hangzhou",
129
- "definition": {
130
- "projectName": "role-reconcile-test-app-dev-sls",
131
- "region": "cn-hangzhou",
132
- "stage": "dev"
133
- },
134
- "instances": [
135
- {
136
- "sid": "si:aliyun:sls_project:dev:role-reconcile-test-app-dev-sls",
137
- "type": "ALIYUN_SLS_PROJECT",
138
- "id": "role-reconcile-test-app-dev-sls"
139
- }
140
- ],
141
- "lastUpdated": "2026-10-27T03:28:14.564Z"
142
- }
143
- }
144
- }
145
- },
146
- "lineage": "35466c85-445c-457f-921c-3b1bf3d348d0",
147
- "serial": 2
148
- }