sst

SST v2

MIT License

Downloads
117.3K
Stars
21.5K
Committers
318

Bot releases are visible (Hide)

sst - v1.10.5

Published by github-actions[bot] about 2 years ago

Changes

  • #2016 190fa9306 - Table: support event filtering for stream consumer

Update using:

$ npx sst update v1.10.5
$ yarn sst update v1.10.5
sst - v1.10.4

Published by github-actions[bot] about 2 years ago

Changes

  • 3d19a5107 - Add static helper functions to config to create many

Update using:

$ npx sst update v1.10.4
$ yarn sst update v1.10.4
sst - v1.10.3

Published by github-actions[bot] about 2 years ago

Changes


Update using:

$ npx sst update v1.10.3
$ yarn sst update v1.10.3
sst - v1.10.1

Published by github-actions[bot] about 2 years ago

⚠️ Breaking Changes:

  • The old sst.Auth construct has been renamed to sst.Cognito. If you are using it be sure to update all references to sst.Cognito - no other changes should be needed.
  • The import for createGQLHandler has changed to GraphQLHandler to match AuthHandler and other handlers we will be shipping soon.

Changes


Update using:

$ npx sst update v1.10.1
$ yarn sst update v1.10.1
sst - v1.9.4

Published by github-actions[bot] about 2 years ago

Changes


Update using:

$ npx sst update v1.9.4
$ yarn sst update v1.9.4
sst - v1.9.3

Published by github-actions[bot] about 2 years ago

Changes


Update using:

$ npx sst update v1.9.3
$ yarn sst update v1.9.3
sst - v1.9.2

Published by github-actions[bot] about 2 years ago

Changes

  • ba4044adb - Switch to node-fetch from undici to avoid node 16.5 requirement

Update using:

$ npx sst update v1.9.2
$ yarn sst update v1.9.2
sst - v1.9.1

Published by github-actions[bot] about 2 years ago

Changes

  • c24c50513 - Updated create-sst to use new Config module and provided example of a sample integration test

Update using:

$ npx sst update v1.9.1
$ yarn sst update v1.9.1
sst - v1.9.0

Published by github-actions[bot] about 2 years ago

πŸ“’ Test with Config

We are launching sst load-config β€” a CLI command to autoload secrets and config in your SST tests:

  • Lambda function uses Config:

    import { Config } from "@serverless-stack/node/config";
    
    export const main = async () => {
      return Config.MY_TABLE_NAME;
    }
    
  • Write tests as usual

    test("MY_TABLE_NAME is loaded", async () => {
      expect(await main()).toBe("dev-app-my-table");
    });
    
  • Run tests

    npx sst load-config -- vitest run
    

Learn more https://docs.sst.dev/advanced/testing


Changes

  • #1981 39a67838d - Add load-config cli command to help loading config for running tests
  • #1987 82cf416fb - Config: use aws sdk v3 in client library

Update using:

$ npx sst update v1.9.0
$ yarn sst update v1.9.0
sst - v1.8.4

Published by github-actions[bot] about 2 years ago

Changes

  • #1979 e21d87a92 - Function: merge config with default function props

Update using:

$ npx sst update v1.8.4
$ yarn sst update v1.8.4
sst - v1.8.3

Published by github-actions[bot] about 2 years ago

πŸ“’ Config

We are launching Config, a set of tools to securely manage secrets and env vars in SST:

  • Constructs to define, Config.Secret & Config.Parameter

    const STRIPE_KEY = new Config.Secret(stack, "STRIPE_KEY");
    const GITHUB_TOKEN = new Config.Secret(stack, "GITHUB_TOKEN");
    
    new Function(stack, "MyFunction", {
      handler: "lambda.handler",
      config: [STRIPE_KEY, GITHUB_TOKEN],
    }
    
  • CLI to set, sst secrets [action]

    npx sst secrets set STRIPE_KEY sk_test_abc123
    
  • Lambda package to fetch in a typesafe way

    import { Config } from "@serverless-stack/node/config";
    
    export const handler = async () => {
      console.log(Config.STRIPE_KEY);
    };
    

Learn more https://docs.sst.dev/environment-variables


Changes

  • #1977 af06c6dd9 - Bootstrap: encode tags in base64 to pass to bootstrap stack

Update using:

$ npx sst update v1.8.3
$ yarn sst update v1.8.3
sst - v1.8.2

Published by github-actions[bot] about 2 years ago

Changes

  • #1971 d7ac80470 - Cli: add bootstrap command with the ability to tag
  • #1972 76a5e0ad6 - sst start: restart functions on secret value change

Update using:

$ npx sst update v1.8.2
$ yarn sst update v1.8.2
sst - v1.8.1

Published by github-actions[bot] about 2 years ago

Changes

  • 3b1de149f - Config: codegen interface ends with ; not ,
  • 1006a8471 - Fix issue running migration locally in cjs projects
  • 1b7675d4d - Fix for Go functions on windows requiring .exe
  • #1963 308a53f66 - Config: grant strict IAM permissions to specific SSM parameters

Update using:

$ npx sst update v1.8.1
$ yarn sst update v1.8.1
sst - v1.7.0

Published by github-actions[bot] about 2 years ago

πŸ“’ Java runtime

Function construct now supports java runtimes. And yes, Live Lambda Dev is supported.

new Function(stack, "MyFn", {
  runtime: "java11",
  srcPath: "path/to/folder/with/gradle.build",
  handler: "example.Handler::handleRequest",
})

More details here https://docs.sst.dev/constructs/Function#configuring-java-runtime

Big shoutout to @paambaati and @naveenann from the OSlash team for their help πŸ™ŒπŸ½


Changes

  • #1922 e0a5eba96 - Function: support Java runtime built with gradle
  • 69fc4c929 - create-sst: normalize app name to be compatible with stack names

Update using:

$ npx sst update v1.7.0
$ yarn sst update v1.7.0
sst - v1.6.10

Published by github-actions[bot] about 2 years ago

Changes

  • #1940 91d28a7d3 - Api: support Lambda container routes

    Api construct now supports using lambda.Function routes. This allows using Lambda container images for routes. For example:

    import * as lambda from "aws-cdk-lib/aws-lambda";
    
    const fn = new lambda.DockerImageFunction(stack, "DockerFunction", {
      code: lambda.DockerImageCode.fromImageAsset("path/to/Dockerfile/folder"),
    });
    
    new Api(stack, "Api", {
      routes: {
        "GET /": {
          cdk: {
            function: fn,
          }
        },
      },
    });
    

Update using:

$ npx sst update v1.6.10
$ yarn sst update v1.6.10
sst - v1.6.9

Published by github-actions[bot] about 2 years ago

Changes

  • #1936 59dd4c023 - RemixSite: expose server function to allow using with the Api construct
  • #1939 bd321f3c4 - Stack: use root.account instead of CDK_DEFAULT_ACCOUNT environment variable

Update using:

$ npx sst update v1.6.9
$ yarn sst update v1.6.9
sst - v1.6.8

Published by github-actions[bot] about 2 years ago

Changes


Update using:

$ npx sst update v1.6.8
$ yarn sst update v1.6.8
sst - v1.6.7

Published by github-actions[bot] about 2 years ago

Changes

  • #1925 fd618d31d - NextjsSite: fix updating function timeout fail to deploy

Update using:

$ npx sst update v1.6.7
$ yarn sst update v1.6.7
sst - v1.6.6

Published by github-actions[bot] about 2 years ago

Changes

  • #1918 abb1ae988 - Fix bucket creation hangs on Custom::S3AutoDeleteObjects

Update using:

$ npx sst update v1.6.6
$ yarn sst update v1.6.6
sst - v1.6.5

Published by github-actions[bot] about 2 years ago

Changes

  • 4cd71c933 - Kill local function every 30min so that credentials refresh

Update using:

$ npx sst update v1.6.5
$ yarn sst update v1.6.5