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

Use latest Node.js version? #666

Open
markusl opened this issue Apr 4, 2024 · 0 comments
Open

Use latest Node.js version? #666

markusl opened this issue Apr 4, 2024 · 0 comments

Comments

@markusl
Copy link

markusl commented Apr 4, 2024

Would it be possible to upgrade to the latest Node.js version? I also think AWS_NODEJS_CONNECTION_REUSE_ENABLED does not exist any more aws/aws-cdk#29497

export class DetectDriftFunction extends lambda.Function {
  constructor(scope: Construct, id: string, props?: DetectDriftFunctionProps) {
    super(scope, id, {
      description: 'src/detect-drift.lambda.ts',
      ...props,
      runtime: new lambda.Runtime('nodejs18.x', lambda.RuntimeFamily.NODEJS),
      handler: 'index.handler',
      code: lambda.Code.fromAsset(path.join(__dirname, '../assets/detect-drift.lambda')),
    });
    this.addEnvironment('AWS_NODEJS_CONNECTION_REUSE_ENABLED', '1', { removeInEdge: true });
  }
}
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

1 participant