@geek-fun/serverlessinsight 0.7.0 → 0.7.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/CHANGELOG.md +26 -0
- package/README.md +58 -1
- package/README.zh-CN.md +3 -1
- package/dist/package.json +37 -35
- package/dist/src/commands/index.js +1 -3
- package/dist/src/commands/local.js +1 -2
- package/dist/src/common/aliyunClient/apigwOperations.js +9 -4
- package/dist/src/common/aliyunClient/cdnOperations.js +191 -0
- package/dist/src/common/aliyunClient/ecsOperations.js +2 -2
- package/dist/src/common/aliyunClient/fc3Operations.js +1 -1
- package/dist/src/common/aliyunClient/index.js +8 -0
- package/dist/src/common/aliyunClient/ossOperations.js +62 -2
- package/dist/src/common/aliyunClient/ramOperations.js +1 -1
- package/dist/src/common/hashUtils.js +4 -0
- package/dist/src/common/iacHelper.js +5 -0
- package/dist/src/common/lockManager.js +8 -0
- package/dist/src/common/planFormatter.js +4 -0
- package/dist/src/common/retryUtils.js +1 -1
- package/dist/src/common/stateManager.js +10 -0
- package/dist/src/common/volcengineClient/apigwOperations.js +1 -1
- package/dist/src/lang/en.js +16 -1
- package/dist/src/lang/zh-CN.js +17 -2
- package/dist/src/parser/bucketParser.js +111 -46
- package/dist/src/stack/aliyunStack/apigwResource.js +310 -47
- package/dist/src/stack/aliyunStack/apigwTypes.js +61 -1
- package/dist/src/stack/aliyunStack/ossResource.js +401 -69
- package/dist/src/stack/aliyunStack/ossTypes.js +58 -16
- package/dist/src/stack/localStack/event.js +1 -1
- package/dist/src/stack/localStack/functionRunner.js +4 -1
- package/dist/src/stack/scfStack/cosTypes.js +3 -6
- package/dist/src/stack/volcengineStack/tosTypes.js +1 -3
- package/dist/src/types/domains/state.js +3 -0
- package/dist/src/validator/bucketSchema.js +124 -56
- package/dist/src/validator/eventSchema.js +20 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +37 -35
- package/samples/README_TENCENT_COS.md +3 -15
- package/samples/aliyun-poc-bucket-cdn.yml +63 -0
- package/samples/aliyun-poc-bucket.yml +0 -2
- package/samples/aliyun-poc-domain.yml +0 -2
- package/samples/tencent-poc-cos.yml +0 -2
- package/samples/volcengine-poc-bucket.yml +0 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
version: 0.1.0
|
|
2
|
+
|
|
3
|
+
provider:
|
|
4
|
+
name: aliyun
|
|
5
|
+
region: cn-hongkong
|
|
6
|
+
|
|
7
|
+
app: insight-poc
|
|
8
|
+
service: insight-poc-cdn-bucket
|
|
9
|
+
|
|
10
|
+
tags:
|
|
11
|
+
owner: geek-fun
|
|
12
|
+
|
|
13
|
+
# Example 1: Simple CDN configuration
|
|
14
|
+
# Just enable CDN with default settings
|
|
15
|
+
buckets:
|
|
16
|
+
simple_cdn_bucket:
|
|
17
|
+
name: insight-poc-simple-cdn
|
|
18
|
+
security:
|
|
19
|
+
acl: PUBLIC_READ
|
|
20
|
+
website:
|
|
21
|
+
code: dist
|
|
22
|
+
index: index.html
|
|
23
|
+
domain:
|
|
24
|
+
domain_name: static.example.com
|
|
25
|
+
certificate_id: cas-cert-abc123
|
|
26
|
+
cdn: true # Simple: CDN enabled with sensible defaults
|
|
27
|
+
|
|
28
|
+
# Example 2: Advanced CDN configuration
|
|
29
|
+
# Full control over CDN settings
|
|
30
|
+
advanced_cdn_bucket:
|
|
31
|
+
name: insight-poc-advanced-cdn
|
|
32
|
+
security:
|
|
33
|
+
acl: PUBLIC_READ
|
|
34
|
+
website:
|
|
35
|
+
code: dist
|
|
36
|
+
index: index.html
|
|
37
|
+
domain:
|
|
38
|
+
domain_name: assets.example.com
|
|
39
|
+
certificate_id: cas-cert-def456
|
|
40
|
+
cdn:
|
|
41
|
+
enabled: true
|
|
42
|
+
cdn_type: web # web | download | video
|
|
43
|
+
scope: global # domestic | overseas | global
|
|
44
|
+
cache_ttl: 3600 # Cache TTL in seconds
|
|
45
|
+
ignore_query_string: false # Ignore query string in cache key
|
|
46
|
+
origin_protocol: https # http | https | follow
|
|
47
|
+
compression: true # Enable Gzip compression
|
|
48
|
+
force_redirect_https: true # Force HTTPS redirect
|
|
49
|
+
|
|
50
|
+
# Example 3: CDN + Transfer Acceleration (dual-layer)
|
|
51
|
+
# CDN origin uses accelerated OSS endpoint
|
|
52
|
+
dual_acceleration_bucket:
|
|
53
|
+
name: insight-poc-dual-accel
|
|
54
|
+
security:
|
|
55
|
+
acl: PRIVATE
|
|
56
|
+
domain:
|
|
57
|
+
domain_name: downloads.example.com
|
|
58
|
+
certificate_id: cas-cert-ghi789
|
|
59
|
+
cdn:
|
|
60
|
+
enabled: true
|
|
61
|
+
cdn_type: download
|
|
62
|
+
scope: global
|
|
63
|
+
accelerate: true # OSS Transfer Acceleration for origin fetch
|