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

Upgrade to node 20 #8

Merged
merged 4 commits into from
Feb 10, 2025
Merged

Upgrade to node 20 #8

merged 4 commits into from
Feb 10, 2025

Conversation

kenoir
Copy link
Contributor

@kenoir kenoir commented Feb 7, 2025

What does this change?

Part of wellcomecollection/platform#5916

This change upgrades th lamdba to use Node 20.

How to test

  • Apply the terraform, does the lambda still process requests?
  • Test a node 20 built zip in production, does it process requests?

How can we measure success?

Less old node, more new node. Node!

Have we considered potential risks?

If this breaks, it'll stop some subset of dev logs getting to the log server, not very impactful.

@kenoir kenoir requested a review from a team as a code owner February 7, 2025 15:57
@kenoir kenoir self-assigned this Feb 7, 2025
@kenoir kenoir removed the request for review from a team February 7, 2025 15:57
@kenoir kenoir requested a review from a team February 10, 2025 10:55
@@ -2,6 +2,7 @@
set -euo pipefail

TERRAFORM_ROLE="arn:aws:iam::760097843905:role/platform-ci"
export AWS_PAGER=""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This disables paginating in the AWS CLI. The new version of the docker image is missing less which the AWS CLI uses by default for paging ... however when it is installed the deploy scripts now expect interactivity to dismiss the output of the deploy cli call.

Adding this env var tells the AWS CLI not to care about the presence of a paging tool and not bother trying to use one.

@kenoir kenoir merged commit 57027e5 into main Feb 10, 2025
3 checks passed
@kenoir kenoir deleted the rk/move-to-node-20 branch February 10, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Upgrade log-forwarder node version from 18 to 20
3 participants