Changes
-
#1940
91d28a7d3
- Api: support Lambda container routesApi
construct now supports usinglambda.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