sst 3.17.24 → 3.17.34

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/aws/bus.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AwsOptions } from "../aws/client.js";
2
2
  import { Resource } from "../resource.js";
3
3
  import { event } from "../event/index.js";
4
- import { EventBridgeEvent, EventBridgeHandler } from "aws-lambda";
4
+ import { EventBridgeEvent, EventBridgeHandler, Context } from "aws-lambda";
5
5
  export declare namespace bus {
6
6
  type Name = Extract<typeof Resource, {
7
7
  type: "sst.aws.Bus";
@@ -10,7 +10,7 @@ export declare namespace bus {
10
10
  [K in Events["type"]]: Extract<Events, {
11
11
  type: K;
12
12
  }>["$payload"];
13
- }[Events["type"]], raw: EventBridgeEvent<string, any>) => Promise<void>): EventBridgeHandler<string, any, void>;
13
+ }[Events["type"]], raw: EventBridgeEvent<string, any>, context: Context) => Promise<void>): EventBridgeHandler<string, any, void>;
14
14
  /** @deprecated
15
15
  * use bus.subscriber instead
16
16
  * */
package/dist/aws/bus.js CHANGED
@@ -8,13 +8,13 @@ export var bus;
8
8
  return `https://events.${region}.amazonaws.com/`;
9
9
  }
10
10
  function subscriber(_events, cb) {
11
- return async function (event) {
11
+ return async function (event, context) {
12
12
  const payload = {
13
13
  type: event["detail-type"],
14
14
  properties: event.detail.properties,
15
15
  metadata: event.detail.metadata,
16
16
  };
17
- return cb(payload, event);
17
+ return cb(payload, event, context);
18
18
  };
19
19
  }
20
20
  bus.subscriber = subscriber;
@@ -70,6 +70,18 @@ export declare namespace task {
70
70
  * @default `"fargate"`
71
71
  */
72
72
  capacity?: "fargate" | "spot";
73
+ /**
74
+ * Overrides the memory allocated for this task in the task definition.
75
+ */
76
+ memory?: `${number} GB`;
77
+ /**
78
+ * Overrides the CPU allocated for this task in the task definition.
79
+ */
80
+ cpu?: `${number} vCPU`;
81
+ /**
82
+ * Overrides the ephemeral storage allocated for this task in the task definition.
83
+ */
84
+ storage?: `${number} GB`;
73
85
  }
74
86
  interface Task {
75
87
  /**
package/dist/aws/task.js CHANGED
@@ -136,6 +136,9 @@ export var task;
136
136
  },
137
137
  },
138
138
  overrides: {
139
+ ...(options?.cpu ? { cpu: (parseFloat(options.cpu.replace(" vCPU", "")) * 1024).toString() } : {}),
140
+ ...(options?.memory ? { memory: (parseFloat(options.memory.replace(" GB", "")) * 1024).toString() } : {}),
141
+ ...(options?.storage ? { ephemeralStorage: { sizeInGiB: parseInt(options.storage.replace(" GB", "")) } } : {}),
139
142
  containerOverrides: resource.containers.map((name) => ({
140
143
  name,
141
144
  environment: Object.entries(environment ?? {}).map(([key, value]) => ({
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "sst",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
- "version": "3.17.24",
6
+ "version": "3.17.34",
7
7
  "main": "./dist/index.js",
8
8
  "repository": {
9
9
  "type": "git",
@@ -43,14 +43,14 @@
43
43
  "sst": "./bin/sst.mjs"
44
44
  },
45
45
  "optionalDependencies": {
46
- "sst-linux-x64": "3.17.24",
47
- "sst-linux-x86": "3.17.24",
48
- "sst-linux-arm64": "3.17.24",
49
- "sst-darwin-x64": "3.17.24",
50
- "sst-darwin-arm64": "3.17.24",
51
- "sst-win32-x64": "3.17.24",
52
- "sst-win32-arm64": "3.17.24",
53
- "sst-win32-x86": "3.17.24"
46
+ "sst-linux-x64": "3.17.34",
47
+ "sst-linux-x86": "3.17.34",
48
+ "sst-darwin-x64": "3.17.34",
49
+ "sst-linux-arm64": "3.17.34",
50
+ "sst-darwin-arm64": "3.17.34",
51
+ "sst-win32-x64": "3.17.34",
52
+ "sst-win32-x86": "3.17.34",
53
+ "sst-win32-arm64": "3.17.34"
54
54
  },
55
55
  "dependencies": {
56
56
  "aws-sdk": "2.1692.0",