Jason
02/24/2022, 7:47 PMruntime: lambda.Runtime.PROVIDED
but sst.Function
doesn't allow it. Is there some workaround I can do apart from just using the cdk constructs directly? I really need to use node v16... I'm guessing provided runtimes aren't allowed because of the local dev stuff but if it's node I think it shouldn't make a difference?Frank
PROVIDED
runtime is Node, Live Lambda debug should just work.Frank
Frank
Jason
02/25/2022, 8:58 AMFrank
nodejs14.x
with the everynode layer, and then update the runtime manually after the function is bundled? ie.
const myFn = new sst.Function(this, "MyFunction", { ... });
myFn.node.defaultChild.runtime = "provided";
// or in Typescript
(myFn.node?.defaultChild as lambda.CfnFunction).runtime = "provided";
Jason
03/08/2022, 7:06 PM