cdk-serverless | AWS CDK Serverless Toolsuite | Serverless library
kandi X-RAY | cdk-serverless Summary
kandi X-RAY | cdk-serverless Summary
CDK Serverless is a tool suite to facilitate the use of the AWS Cloud Development Kit (CDK) in serverless architectures. It provides project management features to configure your TypeScript CDK app and also higher-level (L3) constructs for different APIs and resources needed for serverless applications. Additionally, it leverages utility libraries to write Lambda functions and do live updates to Lambda function code during development.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cdk-serverless
cdk-serverless Key Features
cdk-serverless Examples and Code Snippets
Community Discussions
Trending Discussions on cdk-serverless
QUESTION
I am trying to debug lambda function locally using SAM cli and AWS CDK. So I am getting error function module not found any idea why so? I have taken this project from github https://github.com/mavi888/cdk-serverless-get-started
function.js:
...ANSWER
Answered 2020-Nov-15 at 18:07The issue is that sam
runs a Docker container with a Volume mount from the current directory. So, it's not finding the Lambda code because the path to the code from your CloudFormation template that CDK creates does not include the cdk.out
directory in which cdk
creates the assets.
You have two options:
- Run your
sam
command with a defined volume mountsam local invoke -v cdk.out
- Run the command from within the
cdk.out
directory and pass the JSON template as an argument sincecdk
writes a JSON template:sam local invoke -t
I'd recommend the latter because you're working within the framework that CDK creates and not creating additional files.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cdk-serverless
Add 'cdk-serverless' as a dependency to your project
Run npx projen to install it
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page