I recently started to develop a serverless application using the AWS CDK with typescript. It's a much better option than doing everything via console since I can host the code in a repository and the organization and maintenance also benefit greatly from this feature. However one of the points that the aws console helped a lot was the quick tests that could be done, you wrote a lambda and could test it right there without problems. However, with the CDK, you need to deploy first, throw the updates in the cloud and only then be able to test there. Is there any way to test the CDK locally? Not just lambdas, but something that simulates aws features as a whole?
0
votes
2 Answers
1
votes
0
votes
You can definitely write unit tests to run locally before deploying. However, it sounds like you're looking for a way to test the entire service. That is more complicated and unsolved. A good starting point might be to look at the new SAM-CDK tooling https://aws.amazon.com/blogs/compute/better-together-aws-sam-and-aws-cdk/