sst 2.0.16 → 2.0.17

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 { Tags, Stack, RemovalPolicy, App, CfnOutput } from "aws-cdk-lib";
6
+ import { Duration, Tags, Stack, RemovalPolicy, App, CfnOutput, } from "aws-cdk-lib";
7
7
  import { Function, Runtime, Code } from "aws-cdk-lib/aws-lambda";
8
8
  import { SqsEventSource } from "aws-cdk-lib/aws-lambda-event-sources";
9
9
  import { PolicyStatement } from "aws-cdk-lib/aws-iam";
@@ -21,7 +21,7 @@ import { Stacks } from "./stacks/index.js";
21
21
  const STACK_NAME = "SSTBootstrap";
22
22
  const OUTPUT_VERSION = "Version";
23
23
  const OUTPUT_BUCKET = "BucketName";
24
- const LATEST_VERSION = "6";
24
+ const LATEST_VERSION = "7";
25
25
  const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
26
26
  export const useBootstrap = Context.memo(async () => {
27
27
  Logger.debug("Initializing bootstrap context");
@@ -80,7 +80,6 @@ async function loadCDKStatus() {
80
80
  throw e;
81
81
  }
82
82
  }
83
- return false;
84
83
  }
85
84
  export async function bootstrapSST(tags) {
86
85
  // Create bootstrap stack
@@ -127,7 +126,10 @@ export async function bootstrapSST(tags) {
127
126
  }),
128
127
  ],
129
128
  });
130
- const queue = new Queue(stack, "MetadataQueue");
129
+ const queue = new Queue(stack, "MetadataQueue", {
130
+ visibilityTimeout: Duration.seconds(30),
131
+ retentionPeriod: Duration.minutes(2),
132
+ });
131
133
  fn.addEventSource(new SqsEventSource(queue));
132
134
  const rule = new Rule(stack, "MetadataRule", {
133
135
  eventPattern: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sst",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "bin": {
5
5
  "sst": "cli/sst.js"
6
6
  },
@@ -78,6 +78,7 @@ export const usePythonHandler = Context.memo(async () => {
78
78
  const src = await findAbove(input.props.handler, "requirements.txt");
79
79
  await fs.cp(src, input.out, {
80
80
  recursive: true,
81
+ filter: (src) => !src.includes(".sst"),
81
82
  });
82
83
  if (input.props.python?.installCommands) {
83
84
  for (const cmd of input.props.python.installCommands) {
package/sst.mjs CHANGED
@@ -2627,7 +2627,14 @@ import {
2627
2627
  DescribeStacksCommand,
2628
2628
  CloudFormationClient
2629
2629
  } from "@aws-sdk/client-cloudformation";
2630
- import { Tags, Stack, RemovalPolicy, App, CfnOutput } from "aws-cdk-lib";
2630
+ import {
2631
+ Duration,
2632
+ Tags,
2633
+ Stack,
2634
+ RemovalPolicy,
2635
+ App,
2636
+ CfnOutput
2637
+ } from "aws-cdk-lib";
2631
2638
  import { Function, Runtime, Code } from "aws-cdk-lib/aws-lambda";
2632
2639
  import { SqsEventSource } from "aws-cdk-lib/aws-lambda-event-sources";
2633
2640
  import { PolicyStatement } from "aws-cdk-lib/aws-iam";
@@ -2665,7 +2672,6 @@ async function loadCDKStatus() {
2665
2672
  throw e;
2666
2673
  }
2667
2674
  }
2668
- return false;
2669
2675
  }
2670
2676
  async function bootstrapSST(tags) {
2671
2677
  const project = useProject();
@@ -2710,7 +2716,10 @@ async function bootstrapSST(tags) {
2710
2716
  })
2711
2717
  ]
2712
2718
  });
2713
- const queue = new Queue(stack, "MetadataQueue");
2719
+ const queue = new Queue(stack, "MetadataQueue", {
2720
+ visibilityTimeout: Duration.seconds(30),
2721
+ retentionPeriod: Duration.minutes(2)
2722
+ });
2714
2723
  fn.addEventSource(new SqsEventSource(queue));
2715
2724
  const rule = new Rule(stack, "MetadataRule", {
2716
2725
  eventPattern: {
@@ -2836,7 +2845,7 @@ var init_bootstrap = __esm({
2836
2845
  STACK_NAME = "SSTBootstrap";
2837
2846
  OUTPUT_VERSION = "Version";
2838
2847
  OUTPUT_BUCKET = "BucketName";
2839
- LATEST_VERSION = "6";
2848
+ LATEST_VERSION = "7";
2840
2849
  __dirname = url3.fileURLToPath(new URL(".", import.meta.url));
2841
2850
  useBootstrap = Context.memo(async () => {
2842
2851
  Logger.debug("Initializing bootstrap context");
@@ -5132,7 +5141,8 @@ var init_python = __esm({
5132
5141
  };
5133
5142
  const src = await findAbove(input.props.handler, "requirements.txt");
5134
5143
  await fs12.cp(src, input.out, {
5135
- recursive: true
5144
+ recursive: true,
5145
+ filter: (src2) => !src2.includes(".sst")
5136
5146
  });
5137
5147
  if (input.props.python?.installCommands) {
5138
5148
  for (const cmd of input.props.python.installCommands) {
@@ -6260,7 +6270,7 @@ var init_config = __esm({
6260
6270
  });
6261
6271
 
6262
6272
  // src/cli/sst.ts
6263
- import { blue as blue3, red as red2 } from "colorette";
6273
+ import { blue as blue3, red } from "colorette";
6264
6274
 
6265
6275
  // src/cli/program.ts
6266
6276
  import yargs from "yargs";
@@ -6927,7 +6937,7 @@ var get = (program2) => program2.command(
6927
6937
  describe: "Get the fallback value"
6928
6938
  }),
6929
6939
  async (args) => {
6930
- const { red: red3 } = await import("colorette");
6940
+ const { red: red2 } = await import("colorette");
6931
6941
  const { Config: Config2 } = await Promise.resolve().then(() => (init_config(), config_exports));
6932
6942
  const { Colors: Colors2 } = await Promise.resolve().then(() => (init_colors(), colors_exports));
6933
6943
  try {
@@ -7428,7 +7438,7 @@ process.on("uncaughtException", (err) => {
7428
7438
  if (spinner.isSpinning)
7429
7439
  spinner.fail(spinner.text);
7430
7440
  }
7431
- console.log(red2("Error:"), err.message);
7441
+ console.log(red("Error:"), err.message);
7432
7442
  if (!(err instanceof VisibleError)) {
7433
7443
  console.log();
7434
7444
  console.trace(err.stack);