Bot releases are visible (Hide)
Published by github-actions[bot] about 2 years ago
c628edfe1
- Stack: use a single function to back all custom sourcesc628edfe1
- SST Auth is available! Checkout docs here: https://docs.sst.dev/auth
Update using:
$ npx sst update v1.10.1
$ yarn sst update v1.10.1
Published by github-actions[bot] about 2 years ago
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
39a67838d
- Add load-config
cli command to help loading config for running tests82cf416fb
- Config: use aws sdk v3 in client libraryUpdate using:
$ npx sst update v1.9.0
$ yarn sst update v1.9.0
Published by github-actions[bot] about 2 years ago
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
Update using:
$ npx sst update v1.8.3
$ yarn sst update v1.8.3
Published by github-actions[bot] about 2 years ago
90071d0e2
- Function: lazy add config Function.addConfig
5b49f6dc3
- Cli: list secrets in dotenv formata95bec646
- Cli: config command respect --profiled7ac80470
- Cli: add bootstrap command with the ability to tagUpdate using:
$ npx sst update v1.8.2
$ yarn sst update v1.8.2
Published by github-actions[bot] about 2 years ago
Published by github-actions[bot] about 2 years ago
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 ππ½
e0a5eba96
- Function: support Java runtime built with gradle69fc4c929
- create-sst: normalize app name to be compatible with stack namesUpdate using:
$ npx sst update v1.7.0
$ yarn sst update v1.7.0
Published by github-actions[bot] about 2 years ago
#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
Published by github-actions[bot] about 2 years ago
Update using:
$ npx sst update v1.6.9
$ yarn sst update v1.6.9