sst

SST v2

MIT License

Downloads
117.3K
Stars
21.5K
Committers
318

Bot releases are visible (Hide)

sst - v0.57.2

Published by thdxr almost 3 years ago

πŸ› Bug Fix


Update using:

$ npx sst update 0.57.2
$ yarn sst update 0.57.2
sst - v0.57.0

Published by fwang almost 3 years ago

πŸ’₯ Breaking Change in CDK

If you are using the Api, ApolloApi, or WebSocketApi construct in your app, and if you are configuring JWT or CUSTOM authorizers, there has been a recent change. And here is what you need to change after you update.

If you are using Api or ApolloApi with HttpJwtAuthorizer authorizer

Change this:

new HttpJwtAuthorizer({
  jwtAudience: ["UsGRQJJz5sDfPQDs6bhQ9Oc3hNISuVif"],
  jwtIssuer: "https://myorg.us.auth0.com",
})

to:

new HttpJwtAuthorizer("Authorizer", "https://myorg.us.auth0.com", {
  jwtAudience: ["UsGRQJJz5sDfPQDs6bhQ9Oc3hNISuVif"],
})

If you are using Api or ApolloApi with HttpUserPoolAuthorizer authorizer

Change this:

new HttpUserPoolAuthorizer({
  userPool,
  userPoolClients: [userPoolClient],
})

to:

new HttpUserPoolAuthorizer("Authorizer", userPool, {
  userPoolClients: [userPoolClient],
})

If you are using Api or ApolloApi with HttpLambdaAuthorizer authorizer

Change this:

new HttpLambdaAuthorizer({
  authorizerName: "LambdaAuthorizer",
  handler: new sst.Function(this, "Authorizer", {
    handler: "src/authorizer.main",
  }),
})

to:

const authorizer = new sst.Function(this, "AuthorizerFn", {
  handler: "src/authorizer.main",
});

new HttpLambdaAuthorizer("LambdaAuthorizer", authorizer, {
  authorizerName: "LambdaAuthorizer",
})

If you are using WebSocketApi with HttpLambdaAuthorizer authorizer

Change this:

new HttpLambdaAuthorizer({
  authorizerName: "LambdaAuthorizer",
  handler: new sst.Function(this, "Authorizer", {
    handler: "src/authorizer.main",
  }),
})

to:

const authorizer = new sst.Function(this, "AuthorizerFn", {
  handler: "src/authorizer.main",
});

new WebSocketLambdaAuthorizer("LambdaAuthorizer", authorizer, {
  authorizerName: "LambdaAuthorizer",
  identitySource: ["route.request.header.Authorization"],
})

More info

πŸš€ Enhancement

  • #1242 Update CDK to v1.138.0 (@fwang)
  • #1240 Console: Filter out stacks that do not match supported console version (@thdxr)
  • #1217 Console: Leave the function request body after an invocation (@Manitej66)

πŸ› Bug Fix

Contributors


Update using:

$ npx sst update 0.57.0
$ yarn sst update 0.57.0
sst - v0.56.2

Published by thdxr almost 3 years ago

πŸ› Bug Fix

  • #1219 Emit external source maps when bundling for prod (@thdxr)
  • #1211 fix: invocation response ERROR src property must be a valid json object (@Manitej66)

Update using:

$ npx sst update 0.56.2
$ yarn sst update 0.56.2
sst - v0.56.1

Published by fwang almost 3 years ago

πŸ› Bug Fix

  • #1209 Cli: sst start fails to start when custom stackName used (@fwang)

Update using:

$ npx sst update 0.56.1
$ yarn sst update 0.56.1
sst - v0.56.0

Published by fwang almost 3 years ago

πŸ†• SST Console / S3

This update features a brand new tab in the SST Console. It allows you to explore the S3 buckets in your app. You can add and remove files and folders; browse and navigate them in real-time! And of course it comes in dark and light mode. A big thanks to @Manitej66 and @thdxr for their work on this.


πŸ“ Documentation

Contributors


Update using:

$ npx sst update 0.56.0
$ yarn sst update 0.56.0
sst - v0.55.1

Published by thdxr almost 3 years ago

πŸ› Bug Fix

  • Fix issue with SSO credential loading process with console (@thdxr)

Update using:

$ npx sst update 0.55.1
$ yarn sst update 0.55.1
sst - v0.55.0

Published by thdxr almost 3 years ago

πŸ†• SST Console

Getting Started

  1. Upgrade to v0.55.0
  2. Run sst start
  3. Head over to the Console link β€” SST Console: https://console.serverless-stack.com/my-app/dev/local
  4. Enjoy!

Note that, the Console doesn't support Safari yet. It doesn't allow connecting to the localhost http endpoint. We'll be adding support for it in an upcoming release.

What's New

The SST Console is back and it's better than ever! Here's what's new.

  1. It has a now has a new home β€” console.serverless-stack.com and it automatically connects to your local sst start.

  2. There are 3 tabs in the Console:

    1. Local: This'll show you all your local function invocations grouped by request in real-time.
    2. Stacks: Here you can get a quick overview of all your stacks and their outputs and resources.
    3. Functions: This lists all the functions in your constructs and lets you invoke them.
  3. There's also a really helpful Replay button for your invocations. It'll replay the specific Lambda invocation, allowing you to easily debug your functions!

And finally, it comes in both dark and light mode 🌝🌚

image
image

So give it a try and let us know what you'd like to see next!

πŸš€ Enhancement

πŸ› Bug Fix

πŸ“ Documentation


Update using:

$ npx sst update 0.55.0
$ yarn sst update 0.55.0
sst - v0.54.4

Published by thdxr almost 3 years ago

πŸš€ Enhancement

πŸ› Bug Fix

  • #1167 Fix esbuild treating warnings as errors (@thdxr)
  • #1173 Bucket: allow multiple addNotifications calls within the same scope (@fwang)

πŸ“ Documentation

Committers:


Update using:

$ npx sst update 0.54.4
$ yarn sst update 0.54.4
sst - v0.54.3

Published by thdxr almost 3 years ago

πŸš€ Enhancement

πŸ› Bug Fix

Committers:

sst - v0.54.2

Published by thdxr almost 3 years ago

πŸ› Bug Fix


Update using:

$ npx sst update 0.54.2
$ yarn sst update 0.54.2
sst - v0.54.0

Published by thdxr almost 3 years ago

πŸ“’ Significant update

This release contains extensive changes with the building + watching lifecycle. These changes greatly improve performance especially when dealing with a large set of functions. Most of this is invisible but there are a few things to note:

  1. All functions are no longer prebuilt on sst start - they will be built progressively as they are invoked.
  2. Building is prioritized over typechecking + linting so errors from those checks will show up asynchronously.
  3. The build files are now written to your .sst/artifacts folder and will no longer generate nested .build folders.

πŸ’₯ Breaking Changes:

  1. SST Console has been temporarily disabled. Great things coming soon :)
  2. Esbuild configs must now be defined as part of function props, cannot set them in sst.json
  3. bundle.esbuildConfig cannot point to a file, it must be specified in code. However, the plugins field must point to a file that exports an array of plugins

Special shout out to @kujtimiihoxha - he was invaluable in testing and tested over a dozen broken and buggy builds (and waiting for the Cloudformation to roll out). This release would not have been possible without him

sst - v0.53.4

Published by thdxr almost 3 years ago

πŸš€ Enhancement

  • #1125 Function: allow imported IConstructs in attachPermissions (@fwang)
  • #1126 Function: allow setDefaultFunctionProps before Functions are created (@fwang)

πŸ› Bug Fix

  • #1123 Fixed bug with adding multiple topic subscribers in same stack (@thdxr)

πŸ“ Documentation

  • #1119 Docs: Removed redundant config for Thundra integration (@serkan-ozal)
  • #1110 Docs: Add a missing new line in code sample (@jfix)

Committers:


Update using:

$ npx sst update 0.53.4
$ yarn sst update 0.53.4
sst - v0.53.3

Published by thdxr almost 3 years ago

πŸš€ Enhancement

  • #1102 sst start: default CloudFormation rollback behavior to true (@fwang)
  • #1104 Make deployId public (@thdxr)

πŸ› Bug Fix

  • #1103 Script: fix response too long error (@fwang)
  • #1098 sst deploy: UPDATE_FAILED shown instead of the actual error message (@fwang)
  • #1096 sst deploy: fail with error "Cannot convert undefined or null to object (@fwang)

Update using:

$ npx sst update 0.53.3
$ yarn sst update 0.53.3
sst - v0.53.2

Published by thdxr almost 3 years ago

πŸ› Bug Fix

  • #1087 EventBus: cannot import using bus ARN where the ARN is a CDK import (@fwang)

πŸ“ Documentation

Committers:


Update using:

$ npx sst update 0.53.2
$ yarn sst update 0.53.2
sst - v0.53.1

Published by thdxr almost 3 years ago

πŸš€ Enhancement

πŸ› Bug Fix

πŸ“ Documentation

Committers


Update using:

$ npx sst update 0.53.1
$ yarn sst update 0.53.1
sst - v0.53.0

Published by fwang almost 3 years ago

πŸ’₯ Breaking Change in CDK

If you are using "HttpUserPoolAuthorizer" from "@aws-cdk/aws-apigatewayv2-authorizers", userPoolClient is now renamed to userPoolClients. Chage this:

new HttpUserPoolAuthorizer({
  userPool,
  userPoolClient,
})

to:

new HttpUserPoolAuthorizer({
  userPool,
  userPoolClients: [userPoolClient],
})

More info

πŸ› Bug Fix

  • #1050 Update CDK to v1.132.0 (@fwang)
  • #1051 EventBus: fix event bus cannot be imported by name (@fwang)
  • #1052 Console: incorrect route path in Api panel for custom stage (@fwang)
  • #1053 Table: add instructions for importing tables with stream enabled (@fwang)
  • #1054 Core: after a deploy failure, redeploy detects no changes (@fwang)

πŸ“ Documentation

Contributors

sst - v0.52.0

Published by fwang almost 3 years ago

πŸŽ‰ Announcing SST Console Beta

Try it out with sst start --console

πŸš€ Enhancement

  • #508 sst start: add browser console (@fwang).
  • #1031 Function: throw if the permission grant does not exist on the construct (@omer-to)

Contributors

Update using:

$ npx sst update 0.52.0
$ yarn sst update 0.52.0
sst - v0.51.1

Published by thdxr almost 3 years ago

πŸ› Bug Fix

  • Fixed issue for udp mode

Update using:

$ npx sst update 0.51.1
$ yarn sst update 0.51.1
sst - v0.51.0

Published by thdxr almost 3 years ago

πŸš€ Enhancement

  • #1025 Experimental UDP based communication with AWS (@thdxr). Try it out with sst start --udp

Update using:

$ npx sst update 0.51.0
$ yarn sst update 0.51.0
sst - v0.50.3

Published by thdxr almost 3 years ago

πŸš€ Enhancement

  • #1015 Function: use placeholder Code asset instance instead of inline on sst remove (@fwang)
  • #979 sst start: set log retention in debug stack - #883 (@junaway)

πŸ› Bug Fix

  • #1018 Fix extra certs issue (@thdxr)
  • #1002 Add type definitions for Node and ensure that the major version is the same with default runtime (@omer-to)
  • #982 Fix for breakpoints causing disconnects (@thdxr)

πŸ“ Documentation

Committers: 4


Update using:

$ npx sst update 0.50.3
$ yarn sst update 0.50.3