Getting CDK command errors when trying to deploy AWS Chalice application with CDK
See original GitHub issueI believe the issue has something to do with versioning from what I gather from Gitter and other similar GitHub issues.
Reproduction Steps
Following the exact steps on this blog post here (https://aws.amazon.com/blogs/developer/deploying-aws-chalice-application-using-aws-cloud-development-kit/). I’ve tested this both on mac host machine and cloud9.
Error Log
Depending on the version of node you have, you get one of the following errors.
Bug1
jsii.errors.JavaScriptError:
internal/modules/cjs/loader.js:800
throw err;
^
Error: Cannot find module '@aws-cdk/core/lib/cfn-parse'
Require stack:
- /private/var/folders/1p/_r6fjwgn2pvfy44lqzp661986sb0st/T/jsii-kernel-VjbHVn/node_modules/@aws-cdk/aws-iam/lib/iam.generated.js
- /private/var/folders/1p/_r6fjwgn2pvfy44lqzp661986sb0st/T/jsii-kernel-VjbHVn/node_modules/@aws-cdk/aws-iam/lib/managed-policy.js
- /private/var/folders/1p/_r6fjwgn2pvfy44lqzp661986sb0st/T/jsii-kernel-VjbHVn/node_modules/@aws-cdk/aws-iam/lib/index.js
- 47
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
Bug 2
internal/fs/utils.js:230
throw err;
^
Error: EAGAIN: resource temporarily unavailable, read
at Object.readSync (fs.js:578:3)
at SyncStdio.readLine (/usr/local/lib/python3.8/site-packages/jsii/_embedded/jsii/jsii-runtime.js:13350:25)
at InputOutput.read (/usr/local/lib/python3.8/site-packages/jsii/_embedded/jsii/jsii-runtime.js:13300:34)
at KernelHost.run (/usr/local/lib/python3.8/site-packages/jsii/_embedded/jsii/jsii-runtime.js:7231:32)
at Immediate.<anonymous> (/usr/local/lib/python3.8/site-packages/jsii/_embedded/jsii/jsii-runtime.js:7239:37)
at processImmediate (internal/timers.js:456:21) {
errno: -35,
syscall: 'read',
code: 'EAGAIN'
}
Bug 3 Similar to Bug 2, but missing a utils in @aws_cdk instead of cfn-parse
Environment
- CLI Version: git version 2.24.3
- Framework Version: 1.53.0 (build 6c326cb)
- Node.js Version: 12.3.1, 12.13.1, 12.18.1, 13.1.0, 13.14.0, 14.1.0, 14.2.0, 14.5.0
- OS : MacOS & Cloud9 Linux
- Language (Version): Python
Other
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Troubleshooting common AWS CDK issues
When deploying my AWS CDK stack, I receive a NoSuchBucket error ... AWS CDK stack, I get the message --app is required either...
Read more >Deploying AWS Chalice application using AWS Cloud ...
I will be using AWS Cloud Development Kit (AWS CDK) and AWS Chalice frameworks to develop both infrastructure and application logic as code....
Read more >AWS Chalice adds support for the AWS CDK - Amazon AWS
To use the CDK with Chalice, we need to install the CDK packages used by Chalice. Run the following command to do this....
Read more >Troubleshoot deployment issues in Lambda
This issue can occur when you specify an Amazon S3 object in a call to UpdateFunctionCode, or use the package and deploy commands...
Read more >What is the AWS CDK? - AWS Documentation - Amazon.com
Developer guide for the AWS CDK. ... power of AWS CloudFormation to perform infrastructure deployments predictably and repeatedly, with rollback on error.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any news on this thread? I’m also hitting this issue.
Has there been a status update on this issue?