sst 2.17.2 → 2.17.3

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/bootstrap.js CHANGED
@@ -3,7 +3,7 @@ import path from "path";
3
3
  import { bold, dim } from "colorette";
4
4
  import { spawn } from "child_process";
5
5
  import { DescribeStacksCommand, CloudFormationClient, } from "@aws-sdk/client-cloudformation";
6
- import { App, DefaultStackSynthesizer, CfnOutput, Tags, Stack, RemovalPolicy, } from "aws-cdk-lib/core";
6
+ import { App, DefaultStackSynthesizer, Duration, CfnOutput, Tags, Stack, RemovalPolicy, } from "aws-cdk-lib/core";
7
7
  import { Function, Runtime, Code } from "aws-cdk-lib/aws-lambda";
8
8
  import { PolicyStatement } from "aws-cdk-lib/aws-iam";
9
9
  import { Rule } from "aws-cdk-lib/aws-events";
@@ -20,7 +20,7 @@ const CDK_STACK_NAME = "CDKToolkit";
20
20
  const SST_STACK_NAME = "SSTBootstrap";
21
21
  const OUTPUT_VERSION = "Version";
22
22
  const OUTPUT_BUCKET = "BucketName";
23
- const LATEST_VERSION = "7.1";
23
+ const LATEST_VERSION = "7.2";
24
24
  const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
25
25
  export const useBootstrap = Context.memo(async () => {
26
26
  Logger.debug("Initializing bootstrap context");
@@ -159,6 +159,13 @@ export async function bootstrapSST() {
159
159
  removalPolicy: RemovalPolicy.DESTROY,
160
160
  autoDeleteObjects: true,
161
161
  enforceSSL: true,
162
+ lifecycleRules: [
163
+ {
164
+ id: "Remove partial uploads after 3 days",
165
+ enabled: true,
166
+ abortIncompleteMultipartUploadAfter: Duration.days(3),
167
+ },
168
+ ],
162
169
  blockPublicAccess: cdk?.publicAccessBlockConfiguration !== false
163
170
  ? BlockPublicAccess.BLOCK_ALL
164
171
  : undefined,
@@ -184,6 +184,7 @@ export class Bucket extends Construct {
184
184
  cors: this.buildCorsConfig(cors),
185
185
  blockPublicAccess: this.buildBlockPublicAccessConfig(blockPublicACLs),
186
186
  objectOwnership: this.buildObjectOwnershipConfig(blockPublicACLs),
187
+ enforceSSL: true,
187
188
  ...cdk?.bucket,
188
189
  });
189
190
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.17.2",
4
+ "version": "2.17.3",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },
package/sst.mjs CHANGED
@@ -5366,6 +5366,7 @@ import {
5366
5366
  import {
5367
5367
  App,
5368
5368
  DefaultStackSynthesizer,
5369
+ Duration,
5369
5370
  CfnOutput,
5370
5371
  Tags,
5371
5372
  Stack,
@@ -5473,6 +5474,13 @@ async function bootstrapSST() {
5473
5474
  removalPolicy: RemovalPolicy.DESTROY,
5474
5475
  autoDeleteObjects: true,
5475
5476
  enforceSSL: true,
5477
+ lifecycleRules: [
5478
+ {
5479
+ id: "Remove partial uploads after 3 days",
5480
+ enabled: true,
5481
+ abortIncompleteMultipartUploadAfter: Duration.days(3)
5482
+ }
5483
+ ],
5476
5484
  blockPublicAccess: cdk?.publicAccessBlockConfiguration !== false ? BlockPublicAccess.BLOCK_ALL : void 0
5477
5485
  });
5478
5486
  const fn = new Function(stack, "MetadataHandler", {
@@ -5599,7 +5607,7 @@ var init_bootstrap = __esm({
5599
5607
  SST_STACK_NAME = "SSTBootstrap";
5600
5608
  OUTPUT_VERSION = "Version";
5601
5609
  OUTPUT_BUCKET = "BucketName";
5602
- LATEST_VERSION = "7.1";
5610
+ LATEST_VERSION = "7.2";
5603
5611
  __dirname2 = url8.fileURLToPath(new URL(".", import.meta.url));
5604
5612
  useBootstrap = Context.memo(async () => {
5605
5613
  Logger.debug("Initializing bootstrap context");