Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function hardcodes the runtime to nodejs18.x and fails to build with layers with different runtimes #20

Open
Amousy opened this issue Dec 10, 2024 · 1 comment

Comments

@Amousy
Copy link

Amousy commented Dec 10, 2024

Hello,

I'm reposting the issue here as it hasn't been fixed yet.
sst/sst#3887


I use the datadog-cdk-constructs-v2 livrairie to automatically add the Datadog layer and extension to all the lambdas in my Stack.

` app.setDefaultFunctionProps({
runtime: "nodejs20.x",
});

app.node.children.forEach((stack) => {
const datadog = new DatadogLambda(stack, "datadog", {
nodeLayerVersion: 115,
extensionLayerVersion: 65,
});

      datadog.addLambdaFunctions(stack.getAllFunctions());
    }
  });

`

We do have the nodejs20.x for Lambdas but wrong nodejs version in layer cause SST Function hardcodes the runtime to nodejs18.x

@jayair
Copy link
Contributor

jayair commented Dec 14, 2024

Happy to look at a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants