Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(aws): introduce AWS S3 + Lambda@Edge infra #85

Merged
merged 73 commits into from
Feb 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
a9a8fc3
feat(aws): init project
gronxb Feb 6, 2025
cb9dd4a
Merge branch 'main' into feature/init-aws
gronxb Feb 10, 2025
219177a
feat: s3Database
gronxb Feb 11, 2025
ab670f1
feat: target-app-versions.json
gronxb Feb 11, 2025
1011edb
feat: not used sdk v2 used s3 sdk
gronxb Feb 11, 2025
adba5fe
fix: env
gronxb Feb 11, 2025
4713ffe
fix: access token
gronxb Feb 11, 2025
fa8d6a7
fix: fixme
gronxb Feb 11, 2025
e068ed1
fix: sso
gronxb Feb 11, 2025
a42845d
feat: comment
gronxb Feb 11, 2025
f5b8fd1
feat: sso
gronxb Feb 12, 2025
f3c5c7b
feat: crendential-providers
gronxb Feb 12, 2025
c818ecd
feat(lambda): add S3-based metadata retrieval in Lambda handler (#91)
rjwu95 Feb 12, 2025
903a8b2
Fix Lambda@Edge type (#94)
rjwu95 Feb 12, 2025
c2b7d9f
fix: lambda ts lint (#96)
rjwu95 Feb 13, 2025
2e6bb0e
Merge branch 'main' into feature/init-aws
gronxb Feb 15, 2025
2766b7f
fix: build
gronxb Feb 15, 2025
d086db7
feat: iam
gronxb Feb 15, 2025
158e8e0
fix: biome
gronxb Feb 15, 2025
de67485
fix: biome
gronxb Feb 15, 2025
68814fe
fix: biome
gronxb Feb 15, 2025
7bf58a3
feat: IAM
gronxb Feb 16, 2025
e5bded7
Merge branch 'main' into feature/init-aws
gronxb Feb 16, 2025
73b77b4
refactor: iam and update lambda
gronxb Feb 16, 2025
6f36c41
fix: wait deploy
gronxb Feb 16, 2025
e54ec13
fix: lambda
gronxb Feb 16, 2025
6a8f3a5
fix: bundle Lambda@Edge dependencies into a single file (#113)
rjwu95 Feb 17, 2025
2cd59bc
fix: biome
gronxb Feb 17, 2025
8c776b8
Merge branch 'main' into feature/init-aws
gronxb Feb 17, 2025
49384a6
fix: lambda index noExternal
gronxb Feb 17, 2025
6b632d1
fix: Fix error in Lambda@Edge by replacing return with callback (#116)
rjwu95 Feb 18, 2025
48b8727
fix: biome
gronxb Feb 18, 2025
78ea16c
Ensure CJS-only build for Lambda@Edge and return null instead of erro…
rjwu95 Feb 19, 2025
672a840
Merge branch 'main' into feature/init-aws
gronxb Feb 20, 2025
c97d5cf
Merge branch 'main' into feature/init-aws
gronxb Feb 22, 2025
56eaeda
fix: filter lambda iam
gronxb Feb 22, 2025
b9382a7
fix: zip
gronxb Feb 22, 2025
7e4d2f8
refactor: zip
gronxb Feb 22, 2025
8b67fbf
feat: improve dx
gronxb Feb 22, 2025
96b1c51
fix: eng
gronxb Feb 22, 2025
536c6b4
fix: detail
gronxb Feb 22, 2025
9d95b8c
fix: detail
gronxb Feb 22, 2025
57a9a2e
fix: detail
gronxb Feb 22, 2025
037cac9
fix: next step
gronxb Feb 22, 2025
f6eae4a
feat: permission list
gronxb Feb 22, 2025
9b8ed32
feat: env comment
gronxb Feb 22, 2025
660d2cf
feat: test
gronxb Feb 22, 2025
2d72268
fix: update test case
gronxb Feb 22, 2025
82c8711
feat: refactor
gronxb Feb 22, 2025
11a691d
Merge branch 'main' into feature/init-aws
gronxb Feb 22, 2025
942ea05
fix: lambda
gronxb Feb 22, 2025
41e4ebf
fix: message
gronxb Feb 22, 2025
b6e27bf
fix: path
gronxb Feb 22, 2025
5b62d4a
fix: name
gronxb Feb 22, 2025
a96e738
fix: name
gronxb Feb 22, 2025
3e8a5b0
fix: few
gronxb Feb 22, 2025
0844bc1
fix: session
gronxb Feb 22, 2025
171af97
fix: bump
gronxb Feb 22, 2025
b16317c
fix: test
gronxb Feb 22, 2025
985fc75
perf: infra
gronxb Feb 22, 2025
49980bb
fix: no arm
gronxb Feb 22, 2025
f6d184a
fix: init origin-request
gronxb Feb 23, 2025
619aa1b
feat: behavior api
gronxb Feb 23, 2025
aa9f7bb
feat: hono
gronxb Feb 23, 2025
387c8a3
fix: types
gronxb Feb 23, 2025
af519ab
feat: signed url
gronxb Feb 23, 2025
be21dbe
fix: lmabda
gronxb Feb 23, 2025
79082b6
fix: lock
gronxb Feb 23, 2025
c8109ce
fix: eng
gronxb Feb 23, 2025
87a3cbb
feat: test code
gronxb Feb 23, 2025
61b44bf
fix: test
gronxb Feb 23, 2025
e941ffb
fix: test
gronxb Feb 23, 2025
a778375
fix: mock type
gronxb Feb 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/v0.71.19/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@hot-updater/aws": "0.12.0",
"@hot-updater/metro": "0.12.0",
"@hot-updater/supabase": "0.12.0",
"@react-native-community/cli-platform-android": "10.2.0",
Expand Down
5 changes: 5 additions & 0 deletions packages/hot-updater/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"@types/semver": "^7.5.8",
"boxen": "^8.0.1",
"dayjs": "^1.11.13",
"es-toolkit": "^1.32.0",
"execa": "^9.5.2",
"is-port-reachable": "^4.0.0",
"jszip": "^3.10.1",
Expand All @@ -85,6 +86,7 @@
"uuidv7": "^1.0.2"
},
"peerDependencies": {
"@hot-updater/aws": "*",
"@hot-updater/cloudflare": "*",
"@hot-updater/supabase": "*"
},
Expand All @@ -94,6 +96,9 @@
},
"@hot-updater/cloudflare": {
"optional": true
},
"@hot-updater/aws": {
"optional": true
}
}
}
8 changes: 6 additions & 2 deletions packages/hot-updater/src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,14 @@ export const deploy = async (options: DeployOptions) => {
taskRef.buildResult = await buildPlugin.build({
platform: platform,
});
await createZip(taskRef.buildResult.buildPath, "bundle.zip");
bundlePath = path.join(getCwd(), "bundle.zip");

await createZip({
outfile: bundlePath,
targetDir: taskRef.buildResult.buildPath,
});

bundleId = taskRef.buildResult.bundleId;
bundlePath = path.join(getCwd(), "bundle.zip");
fileHash = await getFileHashFromFile(bundlePath);

return `✅ Build Complete (${buildPlugin.name})`;
Expand Down
6 changes: 6 additions & 0 deletions packages/hot-updater/src/commands/init.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { printBanner } from "@/components/banner";
import { ensureInstallPackages } from "@/utils/ensureInstallPackages";
import { isCancel, select } from "@clack/prompts";
import { initAwsS3LambdaEdge } from "./init/aws";
import { initCloudflareD1R2Worker } from "./init/cloudflareD1R2Worker";
import { initSupabase } from "./init/supabase";

Expand Down Expand Up @@ -52,6 +53,7 @@ export const init = async () => {
value: "cloudflare-d1-r2-worker",
label: "Cloudflare D1 + R2 + Worker",
},
{ value: "aws", label: "AWS S3 + Lambda@Edge" },
],
});

Expand Down Expand Up @@ -81,6 +83,10 @@ export const init = async () => {
await initCloudflareD1R2Worker();
break;
}
case "aws": {
await initAwsS3LambdaEdge();
break;
}
default:
throw new Error("Invalid provider");
}
Expand Down
Loading