Skip to content

Conversation

@adriangmweb
Copy link
Contributor

@adriangmweb adriangmweb commented May 13, 2021

Description

There is an issue when deploying on node v16 or later where CloudFormation fails because the Lambda zip files are empty. After some investigation seems that there is an issue with the aws-cdk version that we were using.

Also, we were using the rmDir function from the node fs package which has been deprecated on node v16.

Closes #823

Changes

  • Upgrade aws-cdk and aws-sdk versions to the latest stable, compatible and reliable without breaking changes versions that fix that error.
  • Use rm({recursive: true}) instead of the deprecated rmDir function form the node fs package.
  • Updated all node dependencies to use at least v14.14

Checks

  • Project Builds
  • Project passes tests and checks
  • Updated documentation accordingly

Additional information

These changes have been tested on node v14, node v15, and node v16.

@adriangmweb adriangmweb requested review from a team, NickSeagull, alvaroloes and charlietfe May 13, 2021 12:41
@adriangmweb adriangmweb added the bug Something isn't working label May 13, 2021
Copy link
Contributor

@juanjoman juanjoman left a comment

Choose a reason for hiding this comment

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

LGTM! We should also update these versions for all rockets when possible

Copy link
Contributor

@alvaroloes alvaroloes left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@alvaroloes alvaroloes left a comment

Choose a reason for hiding this comment

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

Just remember to check the unit tests (they are failing) and integration tests

@adriangmweb
Copy link
Contributor Author

Just remember to check the unit tests (they are failing) and integration tests

Working on it 🚀

@boostercloud boostercloud locked and limited conversation to collaborators May 14, 2021
@boostercloud boostercloud unlocked this conversation May 14, 2021
@adriangmweb adriangmweb merged commit d4cd7d5 into main May 14, 2021
@adriangmweb adriangmweb deleted the fix/node16-bug branch May 14, 2021 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deployment fails on node 16

4 participants