Bot releases are hidden (Show)
Published by thdxr over 2 years ago
This release has a new sst console
command that can point the console at different environments outside of your local (sst start
). This allows you to look at CloudWatch logs and manage your app in production.
Learn more about it here: https://docs.serverless-stack.com/packages/cli#console
npx sst console --stage=production
Update using:
$ npx sst update 0.61.0
$ yarn sst update 0.61.0
Published by thdxr over 2 years ago
Published by fwang over 2 years ago
#1311 Cli: hide exports from outputs created by CDK (@fwang)
If this error seems familiar to you, we added automatic early detection for this issue.
β dev-stackA failed: Export dev-stackA:ExportsOutputRefTableArn30B25837ED330C0 cannot be deleted as it is in use by dev-stackB
SST will temporarily add the exports that are still in use. Read more about how it works.
#1310 Cli: detect exports still in use and temporarily add to template (@fwang)
Update using:
$ npx sst update 0.60.8
$ yarn sst update 0.60.8
Published by fwang over 2 years ago
Update using:
$ npx sst update 0.60.6
$ yarn sst update 0.60.6
Published by thdxr over 2 years ago
Published by thdxr almost 3 years ago
There is now a new option bundle.format
which can be set to "esm"
to generate esm builds. We strongly recommend this and will become the default behavior in the future. It allows for features like top level await which makes things like loading secrets on cold-start a lot smoother.
Some libraries you are using may be written in a way that does not work with ESM at all so you may not be able to use this. We encourage opening issues to push more projects to ship ESM - if they are unable to it's a sign to look for an alternative.
Update using:
$ npx sst update 0.60.2
$ yarn sst update 0.60.2
Published by thdxr almost 3 years ago
Update using:
$ npx sst update 0.59.4
$ yarn sst update 0.59.4
Published by fwang almost 3 years ago
We migrated to CDK v2. Here is how to update your apps.
Estimated time: 15 minutes
Run npx sst update 0.59.1
Open up your package.json
and update CDK dependencies to v2.
@aws-cdk/core
as a dependency, rename it to aws-cdk-lib
.@aws-cdk/assert
as a dependency, remove it from your package.json.@aws-cdk/aws-XXXX
dependencies, and if they are on the experimental package list below, rename them to @aws-cdk/aws-XXXX-alpha
. For example, rename @aws-cdk/api-gatewayv2
to @aws-cdk/api-gatewayv2-alpha
.@aws-cdk/aws-XXXX
dependencies, and if they are not on the experimental package list below, remove them from your package.json.Update the import
in your CDK code to use v2 dependencies.
@aws-cdk/core
, rename import * as cdk from "@aws-cdk/core"
to import * as cdk from "aws-cdk-lib"
.@aws-cdk/assert
, rename import * as assert from "@aws-cdk/assert"
to import * as assert from "aws-cdk-lib/assertions"
. Read more about using assertions here.@aws-cdk/aws-XXXX
, and if they are on the experimental package list below, rename import * as XXXX from "@aws-cdk/aws-XXXX"
to import * as XXXX from "@aws-cdk/aws-XXXX-alpha"
. For example, rename import * as apig from "@aws-cdk/aws-apigatewayv2"
to import * as apig from "@aws-cdk/aws-apigatewayv2-alpha"
.@aws-cdk/aws-XXXX
dependencies, and if they are not on the experimental package list below, rename import * as XXXX from "@aws-cdk/aws-XXXX"
to import * as XXXX from "aws-cdk-lib/aws-XXXX"
. For example, rename import * as sns from "@aws-cdk/aws-sns"
to import * as sns from "aws-cdk-lib/aws-sns"
.Run npx sst update 0.59.1
one more time.
Run npx sst diff
to review the changes. If you are updating from SST v0.57.0 or later, the only major change is how CDK v2 handles CloudFormation parameters, which mostly affects AWS::Lambda::Function
resources' Code
properties.
Read more about updating to AWS CDK v2 here
@aws-cdk/aws-amplify
@aws-cdk/aws-apigatewayv2
@aws-cdk/aws-apigatewayv2-authorizers
@aws-cdk/aws-apigatewayv2-integrations
@aws-cdk/aws-apprunner
@aws-cdk/aws-appsync
@aws-cdk/aws-batch
@aws-cdk/aws-cloud9
@aws-cdk/aws-codestar
@aws-cdk/aws-glue
@aws-cdk/aws-iot-actions
@aws-cdk/aws-iot
@aws-cdk/aws-iotevents
@aws-cdk/aws-ivs
@aws-cdk/aws-kinesisanalytics-flink
@aws-cdk/aws-kinesisfirehose
@aws-cdk/aws-kinesisfirehose-destinations
@aws-cdk/aws-lambda-go
@aws-cdk/aws-lambda-python
@aws-cdk/aws-msk
@aws-cdk/aws-neptune
@aws-cdk/aws-redshift
@aws-cdk/aws-route53resolver
@aws-cdk/aws-servicecatalog
@aws-cdk/aws-servicecatalogappregistry
@aws-cdk/aws-synthetics
Published by fwang almost 3 years ago
In this release we are adding an anonymous telemetry collection program to SST. It's completely optional but it really helps us improve SST. You can read more about this over on our docs.
You can also check out how this is implemented in this PR: https://github.com/serverless-stack/serverless-stack/pull/1236. And the source for the service that stores these anonymous events is also open source: https://github.com/serverless-stack/telemetry
You can opt-out of this if you'd not like to share any information.
npx sst telemetry disable
If you have any questions or concerns, feel free to contact us.
Update using:
$ npx sst update 0.58.0
$ yarn sst update 0.58.0
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