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 Router scaler function to Node.js 20 and AWS SDK v3 #783

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

farski
Copy link
Member

@farski farski commented Sep 17, 2024

This probably needs at least one real-world test run. Some of the v3 SDK commands work a little differently than v2. I think I accounted for all of them, but worth checking.

Closes #733

@farski farski requested a review from cavis September 17, 2024 12:36
Copy link
Member

@cavis cavis left a comment

Choose a reason for hiding this comment

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

👍 works for me!

@@ -940,15 +953,18 @@ Resources:
};

exports.handler = async (event) => {
console.log(JSON.stringify(event));
Copy link
Member

Choose a reason for hiding this comment

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

Temporary for the "real world test run"?

Copy link
Member Author

Choose a reason for hiding this comment

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

I like logging events in Lambdas so that if I ever need to run them manually there are good samples around. I can remove though, if you want.

@@ -16,6 +16,7 @@
"@aws-sdk/client-cloudwatch": "3.x",
"@aws-sdk/client-codebuild": "3.x",
"@aws-sdk/client-codepipeline": "3.x",
"@aws-sdk/client-dynamodb": "3.x",
Copy link
Member

Choose a reason for hiding this comment

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

So what is this package.json used for? Are you running the code for these functions locally somehow?

Copy link
Member Author

Choose a reason for hiding this comment

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

Really just so that my IDE has type info

@farski farski merged commit 33c2891 into main Sep 17, 2024
2 of 4 checks passed
@farski farski deleted the dtr-scaler-node-upgrade branch September 17, 2024 18:21
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

Successfully merging this pull request may close these issues.

Upgrade Dovetail Router feed scaler Lambda function to Node.js 20
2 participants