aws-samples / amazon-q-slack-gateway

MIT No Attribution
79 stars 28 forks source link

Upgrade Lambda Functions from Nodejs16 #31

Open jlosito opened 5 months ago

jlosito commented 5 months ago

Important: Bug reports submitted here should relate specifically to the open source sample amazon-q-slack-gateway project. Do not submit bugs related to the Amazon Q service itself.
If your issue relates to Amazon Q setup, user provisioning, document ingestion, accuracy, or other aspects of the service, then first check the Amazon Q documentation, and then reproduce the problem using the Amazon Q console web experience before engaging AWS support directly. Thank you.

Describe the bug This solution provisions Slack related Lambda Functions using Node.js v16. This version of Node.js has been end-of-life since September 2023.

To Reproduce Steps to reproduce the behavior:

  1. Deploy the solution to an AWS account.
  2. Navigate to each of the Lambda Functions that were provisioned.
  3. Verify each Lambda Function is using v16 of Node.js.

Expected behavior I expect the solution to have the latest Node.js runtime available which at this time is Node.js v20.

Screenshots

Screenshot 2024-04-12 at 16 47 28

Additional context I am running cdk-nag against this solution and noticed it has several findings. One of which is the Lambda runtime. While I tend to disagree that runtimes should be on "latest", we should try to at least try to be on a supported version.