Bot releases are visible (Hide)
Published by fwang over 2 years ago
Update using:
$ npx sst update 0.65.2
$ yarn sst update 0.65.2
Published by thdxr over 2 years ago
This update features a new GraphQL Explorer that lets you query your GraphQLApi
or AppSyncApi
directly from the web console.
The ApolloApi
has been renamed to GraphQLApi
in preparation for some larger GraphQL focused features. Simply changing your code to use sst.GraphQLApi
is all you should need to do.
Update using:
$ npx sst update 0.65.1
$ yarn sst update 0.65.1
Published by thdxr over 2 years ago
This update features a brand new tab in the SST Console that is meant to be used with our new RDS Construct. You can use the query editor to execute queries to inspect your database or insert new data. You can also use the migrations panel to view all of your migrations and execute them.
Update using:
$ npx sst update 0.64.1
$ yarn sst update 0.64.1
Published by fwang over 2 years ago
NextjsSite
The NextjsSite
construct uses the @sls-next/lambda-at-edge package from the serverless-next.js project to build and package your Next.js app to a structure that can be deployed to Lambda@Edge and CloudFront.
Prior to this release, SST used to include the @sls-next/lambda-at-edge
package as a dependency. It caused two problems:
@sls-next/lambda-at-edge
@sls-next/lambda-at-edge
is installed even if you are not using the NextjsSite
constructStarting with this release, you are responsible for installing @sls-next/lambda-at-edge
as a dependency in your SST app to use the NextjsSite
construct.
npm install -s @sls-next/lambda-at-edge
// or
yarn add @sls-next/lambda-at-edge
That's it! This should be a seamless transition for most people without any code changes. However, if you are hardcoding the bucket name, you need to change the name because this release will replace the bucket, and CloudFormation cannot replace it with the same name. For example, change this:
new NextjsSite(this, "Site", {
path: "path/to/src",
s3Bucket: {
bucketName: "my-bucket",
},
});
to
new NextjsSite(this, "Site", {
path: "path/to/src",
s3Bucket: {
bucketName: "my-new-bucket",
},
});
Update using:
$ npx sst update 0.63.0
$ yarn sst update 0.63.0
Published by thdxr over 2 years ago
This update features a brand new tab in the SST Console. It allows you to explore user pools in your app and create new users or delete existing users.
Update using:
$ npx sst update 0.62.0
$ yarn sst update 0.62.0
Published by fwang over 2 years ago
StaticSite
We made some changes to the StaticSite
, ReactStaticSite
, and ViteStaticSite
constructs to speed up the deployment time.
Prior to this release, on each deployment, the site is deployed to a new folder inside the S3 bucket, and the CloudFront distribution is updated to point to the new folder. This process can sometimes take more than 5 mins. On rare occasions, this process can also causes intermittent downtime for low traffic sites. Starting with this release, the site is deployed to the root of the S3 bucket. And each subsequent deployment overwrites the files of the previous deployment.
This should be a seamless transition for most people without any code changes. However, if you are hardcoding the bucket name, you need to change the name because this release will replace the bucket, and CloudFormation cannot replace it with the same name. For example, change this:
new StaticSite(this, "Site", {
Β Β path: "path/to/src",
Β Β s3Bucket: {
Β Β Β Β bucketName: "my-bucket",
Β Β },
});
to
new StaticSite(this, "Site", {
Β Β path: "path/to/src",
Β Β s3Bucket: {
Β Β Β Β bucketName: "my-new-bucket",
Β Β },
});
This affects the StaticSite
, ReactStaticSite
, and ViteStaticSite
constructs.
Update using:
$ npx sst update 0.61.3
$ yarn sst update 0.61.3
Published by thdxr over 2 years ago
Update using:
$ npx sst update 0.61.1
$ yarn sst update 0.61.1
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 almost 3 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