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

Draft
wants to merge 34 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 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
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
6 changes: 3 additions & 3 deletions plugins/aws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
"devDependencies": {
"@types/aws-lambda": "^8.10.147",
"@types/node": "^22.13.1",
"mime": "^4.0.4"
"mime": "^4.0.4",
"@hot-updater/core": "0.9.0",
"@hot-updater/js": "0.9.0"
},
"dependencies": {
"@aws-sdk/client-cloudfront": "^3.745.0",
Expand All @@ -51,8 +53,6 @@
"@aws-sdk/client-s3": "^3.685.0",
"@aws-sdk/credential-providers": "^3.744.0",
"@aws-sdk/lib-storage": "^3.685.0",
"@hot-updater/core": "0.6.5",
"@hot-updater/js": "0.6.5",
"@hot-updater/plugin-core": "0.9.0",
"aws-lambda": "^1.0.7"
}
Expand Down
29 changes: 8 additions & 21 deletions plugins/aws/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
import { defineConfig } from "tsup";

export default defineConfig([
{
entry: ["src/index.ts", "src/sdk.ts"],
format: ["esm", "cjs"],
outDir: "dist",
dts: true,
banner: {
js: `import { createRequire } from 'module'; const require = createRequire(import.meta.url);`,
},
export default defineConfig({
entry: ["src/index.ts", "sdk/index.ts", "lambda/index.ts"],
format: ["esm", "cjs"],
outDir: "dist",
dts: true,
banner: {
js: `import { createRequire } from 'module'; const require = createRequire(import.meta.url);`,
},
{
entry: ["lambda/index.ts"],
format: ["cjs"],
outDir: "dist/lambda",
sourcemap: false,
splitting: false,
clean: true,
dts: false,
external: ["aws-sdk"],
noExternal: ["@hot-updater/js", "@hot-updater/core"],
},
]);
});
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.