@awsless/awsless 0.0.558 → 0.0.560

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/dist/bin.js CHANGED
@@ -3897,8 +3897,8 @@ var onLogFeature = defineFeature({
3897
3897
  action: "lambda:InvokeFunction",
3898
3898
  principal: "logs.amazonaws.com",
3899
3899
  functionName: lambda.functionName,
3900
- sourceArn: `arn:aws:logs:${ctx.appConfig.region}:${ctx.accountId}:log-group:/aws/*/${ctx.app.name}--*`
3901
- // sourceArn: `arn:aws:logs:${ctx.appConfig.region}:${ctx.accountId}:log-group:/aws/lambda/${ctx.app.name}--*`,
3900
+ // sourceArn: `arn:aws:logs:${ctx.appConfig.region}:${ctx.accountId}:log-group:/aws/*/${ctx.app.name}--*`,
3901
+ sourceArn: `arn:aws:logs:${ctx.appConfig.region}:${ctx.accountId}:log-group:/aws/lambda/${ctx.app.name}--*`
3902
3902
  });
3903
3903
  ctx.shared.set("on-log", "consumer-arn", lambda.arn);
3904
3904
  }
@@ -6931,9 +6931,10 @@ import { createHash as createHash4 } from "crypto";
6931
6931
  import { readFile as readFile4 } from "fs/promises";
6932
6932
  import { join as join15 } from "path";
6933
6933
  import { exec as exec2 } from "promisify-child-process";
6934
- var buildExecutable = async (input, outputPath) => {
6934
+ var buildExecutable = async (input, outputPath, architecture) => {
6935
6935
  const filePath = join15(outputPath, "program");
6936
- const args = ["build", input, "--compile", "--target", "bun-linux-x64-modern", "--outfile", filePath];
6936
+ const target = architecture === "x86_64" ? "bun-linux-x64-modern" : "bun-linux-arm64-modern";
6937
+ const args = ["build", input, "--compile", "--target", target, "--outfile", filePath];
6937
6938
  try {
6938
6939
  await exec2(`bun ${args.join(" ")}`);
6939
6940
  } catch (error) {
@@ -6961,7 +6962,7 @@ var createFargateTask = (parentGroup, ctx, ns, id, local) => {
6961
6962
  const fingerprint = await generateFileHash2(workspace, local.code.file);
6962
6963
  return build3(fingerprint, async (write) => {
6963
6964
  const temp = await createTempFolder(`instance--${name}`);
6964
- const executable = await buildExecutable(local.code.file, temp.path);
6965
+ const executable = await buildExecutable(local.code.file, temp.path, props.architecture);
6965
6966
  await Promise.all([
6966
6967
  //
6967
6968
  write("HASH", executable.hash),
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.558",
3
+ "version": "0.0.560",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -35,21 +35,21 @@
35
35
  "peerDependencies": {
36
36
  "@awsless/big-float": "^0.1.3",
37
37
  "@awsless/cloudwatch": "^0.0.1",
38
- "@awsless/duration": "^0.0.3",
39
38
  "@awsless/clui": "^0.0.7",
39
+ "@awsless/duration": "^0.0.3",
40
40
  "@awsless/dynamodb": "^0.2.10",
41
- "@awsless/json": "^0.0.10",
42
- "@awsless/s3": "^0.0.21",
43
41
  "@awsless/iot": "^0.0.3",
44
- "@awsless/sns": "^0.0.10",
45
- "@awsless/lambda": "^0.0.33",
42
+ "@awsless/json": "^0.0.10",
46
43
  "@awsless/mqtt": "^0.0.2",
47
- "@awsless/weak-cache": "^0.0.1",
44
+ "@awsless/open-search": "^0.0.21",
45
+ "@awsless/lambda": "^0.0.33",
46
+ "@awsless/s3": "^0.0.21",
48
47
  "@awsless/redis": "^0.0.14",
49
- "@awsless/validate": "^0.0.19",
50
48
  "@awsless/sqs": "^0.0.8",
51
- "@awsless/open-search": "^0.0.21",
52
- "@awsless/ssm": "^0.0.7"
49
+ "@awsless/sns": "^0.0.10",
50
+ "@awsless/weak-cache": "^0.0.1",
51
+ "@awsless/ssm": "^0.0.7",
52
+ "@awsless/validate": "^0.0.19"
53
53
  },
54
54
  "dependencies": {
55
55
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -134,16 +134,16 @@
134
134
  "zod": "^3.24.2",
135
135
  "zod-to-json-schema": "^3.24.3",
136
136
  "@awsless/big-float": "^0.1.3",
137
+ "@awsless/cloudwatch": "^0.0.1",
137
138
  "@awsless/duration": "^0.0.3",
138
- "@awsless/formation": "^0.0.80",
139
139
  "@awsless/clui": "^0.0.7",
140
- "@awsless/size": "^0.0.2",
141
- "@awsless/validate": "^0.0.19",
140
+ "@awsless/formation": "^0.0.80",
142
141
  "@awsless/json": "^0.0.10",
143
- "@awsless/graphql": "^0.0.9",
144
- "@awsless/cloudwatch": "^0.0.1",
145
142
  "@awsless/scheduler": "^0.0.4",
146
- "@awsless/ts-file-cache": "^0.0.12"
143
+ "@awsless/size": "^0.0.2",
144
+ "@awsless/ts-file-cache": "^0.0.12",
145
+ "@awsless/graphql": "^0.0.9",
146
+ "@awsless/validate": "^0.0.19"
147
147
  },
148
148
  "devDependencies": {
149
149
  "@node-rs/bcrypt": "^1.10.5",