Bot releases are visible (Hide)
Published by fwang almost 3 years ago
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.
Api
or ApolloApi
with HttpJwtAuthorizer
authorizerChange this:
new HttpJwtAuthorizer({
jwtAudience: ["UsGRQJJz5sDfPQDs6bhQ9Oc3hNISuVif"],
jwtIssuer: "https://myorg.us.auth0.com",
})
to:
new HttpJwtAuthorizer("Authorizer", "https://myorg.us.auth0.com", {
jwtAudience: ["UsGRQJJz5sDfPQDs6bhQ9Oc3hNISuVif"],
})
Api
or ApolloApi
with HttpUserPoolAuthorizer
authorizerChange this:
new HttpUserPoolAuthorizer({
userPool,
userPoolClients: [userPoolClient],
})
to:
new HttpUserPoolAuthorizer("Authorizer", userPool, {
userPoolClients: [userPoolClient],
})
Api
or ApolloApi
with HttpLambdaAuthorizer
authorizerChange 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",
})
WebSocketApi
with HttpLambdaAuthorizer
authorizerChange 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"],
})
Update using:
$ npx sst update 0.57.0
$ yarn sst update 0.57.0
Published by thdxr almost 3 years ago
Update using:
$ npx sst update 0.56.2
$ yarn sst update 0.56.2
Published by fwang almost 3 years ago
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.
Update using:
$ npx sst update 0.56.0
$ yarn sst update 0.56.0
Published by thdxr almost 3 years ago
v0.55.0
sst start
SST Console: https://console.serverless-stack.com/my-app/dev/local
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.
The SST Console is back and it's better than ever! Here's what's new.
It has a now has a new home β console.serverless-stack.com and it automatically connects to your local sst start
.
There are 3 tabs in the Console:
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 ππ
So give it a try and let us know what you'd like to see next!
Update using:
$ npx sst update 0.55.0
$ yarn sst update 0.55.0
Published by thdxr almost 3 years ago
Update using:
$ npx sst update 0.54.4
$ yarn sst update 0.54.4
Published by thdxr almost 3 years ago
Update using:
$ npx sst update 0.54.2
$ yarn sst update 0.54.2
Published by thdxr almost 3 years ago
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:
sst start
- they will be built progressively as they are invoked..sst/artifacts
folder and will no longer generate nested .build
folders.sst.json
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 pluginsSpecial 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
Published by thdxr almost 3 years ago
Update using:
$ npx sst update 0.53.4
$ yarn sst update 0.53.4
Published by thdxr almost 3 years ago
Update using:
$ npx sst update 0.53.3
$ yarn sst update 0.53.3
Published by thdxr almost 3 years ago
Update using:
$ npx sst update 0.53.2
$ yarn sst update 0.53.2
Published by thdxr almost 3 years ago
Update using:
$ npx sst update 0.53.1
$ yarn sst update 0.53.1
Published by fwang almost 3 years ago
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],
})
Published by fwang almost 3 years ago
Published by thdxr almost 3 years ago
Update using:
$ npx sst update 0.51.1
$ yarn sst update 0.51.1
Published by thdxr almost 3 years ago
Update using:
$ npx sst update 0.50.3
$ yarn sst update 0.50.3