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

Node 10 support #325

Merged
merged 15 commits into from
Dec 13, 2019
Merged

Node 10 support #325

merged 15 commits into from
Dec 13, 2019

Conversation

hcourt
Copy link
Contributor

@hcourt hcourt commented Dec 10, 2019

Fixes #324

@hcourt hcourt marked this pull request as ready for review December 11, 2019 00:41
Copy link
Contributor

@vsmart vsmart left a comment

Choose a reason for hiding this comment

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

Thanks for getting this started @hcourt!

We should definitely make a prerelease and test this with ecs-telephone. I'd be happy to help with or pair on that!

.artifacts.yml Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
@hcourt
Copy link
Contributor Author

hcourt commented Dec 12, 2019

Tested with a staging stack. Logs indicated that messages could be processed successfully.

@hcourt
Copy link
Contributor Author

hcourt commented Dec 12, 2019

One (custom) resource was failing to finish creation, and I believe this is due to aws/aws-sdk-js#2955

Trying out a fix for this.

@hcourt
Copy link
Contributor Author

hcourt commented Dec 12, 2019

One (custom) resource was failing to finish creation, and I believe this is due to aws/aws-sdk-js#2955

Trying out a fix for this.

This worked.

@hcourt
Copy link
Contributor Author

hcourt commented Dec 12, 2019

Think this is finished. Before releasing, I will also merge #326.

@@ -823,14 +823,14 @@ module.exports = (options = {}) => {
Role: cf.getAtt(prefixed('LambdaScalingRole'), 'Arn'),
Code: {
ZipFile: cf.sub(`
const response = require('cfn-response');
const response = require('./cfn-response');
Copy link
Contributor

Choose a reason for hiding this comment

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

Wow - nice find, though that is super weird. I did see that in the support ticket you linked (aws/aws-sdk-js#2955) they also recommend trying to update the AWS-SDK node dependency to the latest version. Would you consider trying that to see if it makes this change not needed?
We could also ship this as-is and open a support case to track - I'll leave that up to you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm, going to try it out, shouldn't take that long.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is a matter of where the Lambda or CloudFormation code packages cfn-response, not anything to do with the aws sdk. The support ticket I linked also mentions this.

I did a lot of testing but I'm ready to let this go for now. I think even using a different package version would be more onerous than this pretty simple workaround. I will open a support case to track it.

Copy link
Contributor

@vsmart vsmart left a comment

Choose a reason for hiding this comment

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

Thanks @hcourt 🎉

@hcourt hcourt merged commit 15d0214 into master Dec 13, 2019
@hcourt hcourt deleted the node10 branch December 13, 2019 21:33
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.

Node 10 support
2 participants