-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws-cdk: npx cdk deploy not working in a github action #29090
Comments
cdk 2.19.0 was released in April 2022 and it might not have full test with node18. I am wondering:
|
So, I'm quite new to aws and I'm not sure what is the difference between aws-cdk and aws-cdk-lib but if I don't want to install aws-cdk in the github action and I want to keep running the same command I guess I should install latest aws-cdk in my project and then using npx would be equivalent to install it globally in the github action. Am I right? |
I've just realised that making this only change, even without updating cdk and aws-cdk-lib packages, it works: I've seen that aws docs recommends installing aws-cdk globally and running cdk deploy. But I've checked the cdk package in npm repositories and its current version is the same as aws-cdk, which has led me to think it should be updated and functional. So, is the package cdk in npm deprecated? What's exactly happening when running "npx cdk deploy..." and what's the difference when running "npx aws-cdk deploy..."? Can someone shed some light? |
Describe the bug
After updating Node from 16 to 18, the command npx cdk delpoy inside a github action doesn't work. The deploy doesn't happen and it doesn't raise any kind of error. We have the aws-cdk-lib: 2.19 and cdk: 2.19 packages in our project.
Expected Behavior
With node 16 (works fine)
Current Behavior
With node 18 (no deploy and no error)
Reproduction Steps
We have just changed the node version from 16 to 18 in the github action that runs the command npx cdk deploy
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.19
Framework Version
No response
Node.js Version
18
OS
Ubuntu
Language
TypeScript
Language Version
Typescript (4.6.3)
Other information
No response
The text was updated successfully, but these errors were encountered: