sst 3.5.13 → 3.5.15

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.
@@ -63,6 +63,14 @@ export declare namespace task {
63
63
  */
64
64
  aws?: AwsOptions;
65
65
  }
66
+ export interface RunOptions extends Options {
67
+ /**
68
+ * Configure the capacity provider; regular Fargate or Fargate Spot, for this task.
69
+ *
70
+ * @default `"fargate"`
71
+ */
72
+ capacity?: "fargate" | "spot";
73
+ }
66
74
  interface Task {
67
75
  /**
68
76
  * The ARN of the task.
@@ -159,7 +167,7 @@ export declare namespace task {
159
167
  * If you are not using Node.js, you can use the AWS SDK and call
160
168
  * [`RunTask`](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html).
161
169
  */
162
- export function run(resource: Resource, environment?: Record<string, string>, options?: Options): Promise<RunResponse>;
170
+ export function run(resource: Resource, environment?: Record<string, string>, options?: RunOptions): Promise<RunResponse>;
163
171
  /**
164
172
  * Stops a task.
165
173
  *
package/dist/aws/task.js CHANGED
@@ -120,8 +120,13 @@ export var task;
120
120
  "Content-Type": "application/x-amz-json-1.1",
121
121
  },
122
122
  body: JSON.stringify({
123
+ capacityProviderStrategy: [
124
+ {
125
+ capacityProvider: options?.capacity === "spot" ? "FARGATE_SPOT" : "FARGATE",
126
+ weight: 1,
127
+ },
128
+ ],
123
129
  cluster: resource.cluster,
124
- launchType: "FARGATE",
125
130
  taskDefinition: resource.taskDefinition,
126
131
  networkConfiguration: {
127
132
  awsvpcConfiguration: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "sst",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
- "version": "3.5.13",
6
+ "version": "3.5.15",
7
7
  "main": "./dist/index.js",
8
8
  "repository": {
9
9
  "type": "git",
@@ -41,11 +41,11 @@
41
41
  "sst": "./bin/sst.mjs"
42
42
  },
43
43
  "optionalDependencies": {
44
- "sst-linux-x64": "3.5.13",
45
- "sst-linux-x86": "3.5.13",
46
- "sst-darwin-x64": "3.5.13",
47
- "sst-linux-arm64": "3.5.13",
48
- "sst-darwin-arm64": "3.5.13"
44
+ "sst-linux-x64": "3.5.15",
45
+ "sst-linux-x86": "3.5.15",
46
+ "sst-linux-arm64": "3.5.15",
47
+ "sst-darwin-x64": "3.5.15",
48
+ "sst-darwin-arm64": "3.5.15"
49
49
  },
50
50
  "dependencies": {
51
51
  "aws4fetch": "^1.0.18",