-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Expected Behavior
I would like to be able to set the nodeLayerVersion to a constant value provided by this library so that I don't have to update this version on a constant basis. The Datadog serverless plugin seems to handle this with a map file:
https://github.com/DataDog/serverless-plugin-datadog/blob/main/src/layers.json
Example
const datadogLambda = new DatadogLambda(this, 'DatadogLambda', {
flushMetricsToLogs: true,
addLayers: true,
nodeLayerVersion: NodeLayerVersion.UsEast1.Node22.Latest, // Ideally a constant for the latest layer version is available. Perhaps the region must also be taken into account
});Actual Behavior
const datadogLambda = new DatadogLambda(this, 'DatadogLambda', {
flushMetricsToLogs: true,
addLayers: true,
nodeLayerVersion: 124 // the version is hardcoded and must be looked up from https://github.com/DataDog/datadog-lambda-js/releases
});encron and dls314
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request